vue-cli-service test:unit
Run unit tests with ava
Note the tests are run inside Node.js with browser environment simulated with browser-env.
Usage: vue-cli-service test:unit [options] [<file|directory|glob> ...]
Options:
--watch, -w Re-run tests when tests and source files change
--match, -m Only run tests with matching title (Can be repeated)
--update-snapshots, -u Update snapshots
--fail-fast Stop after first test failure
--timeout, -T Set global timeout
--serial, -s Run tests serially
--concurrency, -c Max number of test files running at the same time (Default: CPU cores)
--verbose, -v Enable verbose output
--tap, -t Generate TAP output
--color Force color output
--no-color Disable color output
Default files matches are: any files in tests/unit
that end in .spec.(ts|js)
.
All command line options are supported.