Skip to content

Commit 3e35ccc

Browse files
committed
docs(angular): πŸ“ fix typos
1 parent bef8713 commit 3e35ccc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

β€Žapps/cookbook/docs/angular/testing/01-vitest/01-why-vitest.mdβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ Since the deprecation of [Karma](https://karma-runner.github.io/latest/index.htm
1212

1313
- [Jest](https://jestjs.io/)
1414
- [Vitest](https://vitest.dev/)
15-
- [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/) (_While promising, Web Test Runner is still in its early stages so we will not consider it in this comparison._)
15+
- [Web Test Runner](https://modern-web.dev/docs/test-runner/overview/) (_While promising, Web Test Runner is still in its early stages, so we will not consider it in this comparison._)
1616

1717
While both Jest and Vitest are mature and widely used in the web ecosystem, Jest has been massively adopted by the Angular community for many years. However, **Vitest is gaining traction and is fixing many of the pain points that Angular developers have been facing with Jest**.
1818

1919
Let's explore some of the reasons why you should consider using Vitest for your Angular projects.
2020

2121
## πŸ“¦ ESM Support
2222

23-
Vitest was design with ECMAScript modules (ESM) compatibility in mind. This means that Vitest supports ESM out of the box. This is a big deal because Angular and the whole JavaScript ecosystem is moving towards ESM.
23+
Vitest was designed with ECMAScript modules (ESM) compatibility in mind. This means that Vitest supports ESM out of the box. This is a big deal because Angular and the whole JavaScript ecosystem are moving towards ESM.
2424

2525
Beyond all the intrinsic advantages of ESM, **this means that Vitest does not require any configuration to downgrade ESM to CommonJS**, even for third-party libraries.
2626

@@ -174,7 +174,7 @@ Here is a non-exhaustive list:
174174

175175
### Type Testing
176176

177-
Vitest supports [type testing](https://vitest.dev/guide/testing-types.html) out of the box. This means that intead of compilation errors using TypeScript's [`@ts-expect-error`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html#-ts-expect-error-comments), you can write type tests for your complex generics, conditional types, and more using a similar API to your regular tests.
177+
Vitest supports [type testing](https://vitest.dev/guide/testing-types.html) out of the box. This means that instead of compilation errors using TypeScript's [`@ts-expect-error`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html#-ts-expect-error-comments), you can write type tests for your complex generics, conditional types, and more using a similar API to your regular tests.
178178

179179
```ts
180180
test('create a serializer for the provided type', () => {

0 commit comments

Comments
Β (0)