Skip to content

vzk

Check the files with the compiler as a commit would, or play the site’s test scenarios. Typed inside bash, where help vzk prints the same.

Usage: vzk check
vzk test
vzk check Judges the files as they stand here, HEAD with the changes
not committed laid over it, as git commit would judge them.
Prints each error and warning as
<path>:<line>:<column>: <error|warning>: <message> (<code>),
what a commit would fix and format in a .vzk file, and
`no errors` last when there is none. Status 1 when there
is an error, which a commit would be refused for.
vzk test Plays the scenarios in the tests/<name>.test.ts files at
HEAD with stand-in visitors and rows of their own; the
site's rows are never touched. Prints each scenario, and
for one that fails its line, what did not hold and what
the page showed. Status 1 when one fails, and merge_branch
is refused while one does. It plays what is committed, so
git commit first. Read guide vzk/tests.