@rrlab/vitest-plugin
v0.1.0
Published
vitest plugin for @rrlab/cli — provides the test capability as a passthrough to vitest.
Readme
@rrlab/vitest-plugin
Adds the test capability to @rrlab/cli — a thin passthrough to vitest.
rr plugins add vitestUsage
rr test forwards every flag and argument straight to vitest, so anything you'd type after vitest works unchanged:
rr test # run the suite
rr test run --coverage # forwarded verbatim
rr test --project unit # forwarded verbatim
rr test --help # vitest's own help
rr test doctor # health check (reserved by rr, not forwarded)Env files
By default rr test loads an env file before running, picking the first that exists:
.env.test.env
Override it with --env (must come before the forwarded args):
rr test --env=.env.ci runIt's
--env, not--env-file: Node's early--env-filescanner would grab that exact token off therrprocess before the CLI could read it.
An explicit --env file that doesn't exist is an error (typo protection); the
defaults above are loaded only when present.
