From ff169254f95c6414ba8d99d1c59c4beb78c49a9b Mon Sep 17 00:00:00 2001 From: danilo spinelli Date: Tue, 6 Feb 2024 09:59:06 +0100 Subject: [PATCH] Add Vitest to adopt ring --- radar/tools/vitest.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 radar/tools/vitest.md diff --git a/radar/tools/vitest.md b/radar/tools/vitest.md new file mode 100644 index 0000000..a9f715e --- /dev/null +++ b/radar/tools/vitest.md @@ -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