Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vitest to adopt ring #71

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions radar/tools/vitest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: "Vitest"
ring: adopt
quadrant: "tools"
tags: [typescript, frontend, web, backend, testing]
---

[Vitest](https://vitest.dev/) is a testing framework powered by Vite.

> Even if your library is not using Vite, Vitest is an interesting option as it gives you a faster run for your unit tests and a jump in DX thanks to the default watch mode using Vite instant Hot Module Reload (HMR).

> Vitest offers compatibility with most of the Jest API and ecosystem libraries, so in most projects, it should be a drop-in replacement for Jest.

## Use cases

- Unit testing in TypeScript projects

## Reference of usage in our organization

A list of repositories where Vitest is applied successful in a production environment:

https://github.com/search?q=org%3Apagopa+vitest%2Fconfig&type=code
Loading