Reference
wf test
Run the project's `test "…" { … }` declarations under tests/
wf test [PATH] [options]
Writes: the snapshots, with --update.
Runs the project's test "…" { } declarations.
$ wf test
$ wf test tests/cart.wf
$ wf test --update
wf test runs every test under tests/ (and in src/), or the tests in one file. A test that clicks or types runs in headless Chrome, on a page that links the project's scripts.
See also: Testing.
Options
| Option | Type | Meaning |
|---|---|---|
[PATH] | path | Project directory (default: current directory), or one test file |
--update | flag | Rewrite every snapshot with the current render |