Testing
Vitest
We use Vitest as our testing framework.
- Vitest collects code coverage information via
@vitest/coverage-v8 - Vitest supports snapshot testing out of the box
- It works with Vue.js (jsdom environment) and Node.js projects
- Each workspace has its own
vitest.config.js
To execute all tests, simply run
yarn workspaces foreach --all run testor to include test coverage generation
yarn workspaces foreach --all run test-coverageYou can also run tests for frontend, backend and charts directly inside the respective folder via
yarn testVS Code Integration
We recommend the Vitest extension for running and debugging tests directly from the editor. See .vscode/extensions.json for all recommended extensions.
Lint
We use ESLint for static code analyzing.
To execute, run
yarn workspaces foreach --all run lint