Vitest : (A Vite-native testing framework)

Ayush KumarAyush Kumar
1 min read

1. Vitest Scripts in package.json

"scripts": {
    // This script runs Vitest to execute the test suite
    "test": "vitest",

    // This script runs Vitest with an additional flag --coverage
    // The --coverage flag generates a test coverage report, showing how much of your code is covered by tests
    "test": "vitest --coverage"
}
0
Subscribe to my newsletter

Read articles from Ayush Kumar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ayush Kumar
Ayush Kumar

A passionate MERN Stack Developer from India I am a full stack web developer with experience in building responsive websites and applications using JavaScript frameworks like ReactJS, NodeJs, Express etc.,