Skip to content

Commit 675a9b5

Browse files
committed
docs(angular): šŸ“ add conclusion section highlighting benefits of Vitest over Jest
1 parent 39c8832 commit 675a9b5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,16 @@ Vitest also supports [benchmarking](https://vitest.dev/guide/features.html#bench
235235
This is one of the latest sweets from the Vitest buffet. [Vitest can run your tests in a real browser](https://vitest.dev/guide/browser/).
236236

237237
It is still experimental so it is still early to draw conclusions, but right now, we think that [Playwright Component Testing](https://github.com/jscutlery/devkit/tree/main/packages/playwright-ct-angular) approach is more suitable. We will elaborate on this in a future chapter.
238+
239+
## šŸŽÆ Conclusion
240+
241+
It is time to **consider Vitest for your Angular products**. Vitest is a modern testing framework that is designed to address the common pain points of testing. It is faster, more flexible, and provides a better developer experience than Jest.
242+
243+
It is also widely used in the web ecosystem, so you can benefit from the community's feedback and contributions. By aligning with the web ecosystem and other frameworks, you can benefit from transferable skills and knowledge. Developers coming from other horizons will find it easier to contribute to your Angular products.
244+
245+
Note that Vitest shares most of the APIs with Jest, so the migration is generally smooth. Additionally, you can migrate progressively and keep using both Jest & Vitest during the migration period.
246+
247+
:::note
248+
While this chapter highlights the benefits of Vitest over Jest, it is important to note that the **Jest team did an outstanding job over the years**.
249+
Jest is more than 10 years old, while Vitest is barely 3 years old. That is why Vitest was able to learn from Jest's mistakes and successes.
250+
:::

0 commit comments

Comments
Ā (0)