Package Exports
- @virmator/test
- @virmator/test/configs/web-test-runner.config.base.mjs
- @virmator/test/dist/test.js
- @virmator/test/dist/web-snapshot-plugin/snapshot-payload.js
- @virmator/test/dist/web-snapshot-plugin/web-snapshot-plugin.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@virmator/test) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@virmator/test
A default plugin for virmator.
Available commands
test
Runs tests. An environment is required.
This cannot be run in a mono-repo root, it can only be run for mono-repo sub-packages or a top-level singular package.
Examples
- Run tests in a browser:
virmator test web - Run tests in Node:
virmator test node
- Run tests in a browser:
Deps
Sub Commands
web
Runs web tests in a browser using web-test-runner.
Examples
virmator test web
Configs
- configs/web-test-runner.config.mjs
Deps
Sub Commands
coverage
Run tests and calculate code coverage.
- Examples
virmator test web coverage
- Examples
update
Run tests and update snapshots.
- Examples
virmator test web update
- Examples
node
Runs backend tests in Node.js using its built-in test runner.
Examples
virmator test node
Sub Commands
coverage
Run tests and calculate code coverage.
- Examples
virmator test node coverage
- Configs
- configs/c8.config.json
- Deps
- Examples
update
Run tests and update snapshots.
- Examples
virmator test node update
- Examples