How do I run tests?

The test environment loads the built development output (not bundled nor minified) dist/src/index.html into jsdom.

# Commands support file filter (except :watch)
<pm> run testin-nutin           # build, then run once
<pm> run testin-nutin:only      # run once, without rebuilding
<pm> run testin-nutin:watch     # build and run on every file change
<pm> run testin-nutin:coverage  # run and outputs coverage.
<pm> run testin-nutin:verbose   # run and log each test suite and test as it runs

testin-nutin:watch watches src/ (and tools/ with includeTools), including added and deleted files, and rebuilds before each run.

The runner warns when a file in src/ or config/, or nutin.config.js, changed after the last successful build.

Test files themselves don't count.

See How do I write a test?.