@gasket/plugin-vitest
Creates a vitest based testing environment for your Gasket application.
Installation
This plugin is only used by presets for create-gasket-app
and is not installed for apps.
Usage
When you create a new Gasket application that is configured with the vitest
plugin it will prepare it with a vitest
based testing environment. It will add
the following scripts
to the package.json
:
npm test
, Runs all test files that include*.test.
or*.spec.
.npm run test:watch
Same asnpm test
but now watches your tests and automatically re-runs the tests when changes are detected.npm run test:coverage
Same asnpm test
, but generates coverage information for all the files matching thetest.coverage
options in thevitest.config.js
file.