Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 711 Bytes

DEVELOPMENT.md

File metadata and controls

30 lines (18 loc) · 711 Bytes

Development

Testing

Library

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.

Code Style

ESLint tool is used for code style testing.

To run the code style tests, use this command:

npm run test:lint