Vitest framework is used for library testing.
To run the library tests, use this command:
npm run test:lib -- --environment $ENVIRONMENT
where $ENVIRONMENT
is one of:
node
happy-dom
By default the tests are going to run in watch mode. But when the process.env.CI
is present, they're gonna run in default mode returning the result of the test run. For more information, see Vitest: Watch Mode documentation.
ESLint tool is used for code style testing.
To run the code style tests, use this command:
npm run test:lint