verit-test
A basic JavaScript testing framework designed to work with .mjs
files without need of a transpiler.
Usage
Installation
npm i -D verit-test
Running
Aliases: vt
, vtest
, verit-test
# The entire test suite: vt # A glob: vt test/**/*.test.mjs # A specific file: vt test/unit/src/App.test.mjs # A specific test: vt test/unit/src/App.test.mjs -l 126
Configuration
Configuration can be passed directly to vt via command-line:
vt --foo=bar
And can be accessed via:
;
Configuration can also be passed per-suite or per-test:
;
CLI options
vt --help
Options:
--help Show help [boolean]
--version Show version number [boolean]
--parallel Option to run tests in parallel [boolean] [default: true]
--globals Option to attach global test helpers [boolean] [default: false]
--line, -l Lines of tests and suites to run [number]