npm.io
14.38.0 • Published 3 weeks ago

@virmator/test

Licence
(MIT OR CC0-1.0)
Version
14.38.0
Deps
13
Size
97 kB
Vulns
1
Weekly
0
Stars
3

@virmator/test

A default plugin for virmator.

Available commands

  • test

    Runs tests. An environment is required.

    This cannot be run in a mono-repo root, it can only be run for mono-repo sub-packages or a top-level singular package.

    Pass --footprint to record which functions each test file actually ran, as raw v8 coverage in node_modules/.cache/virmator/footprints. Tests still run normally, coverage is not calculated. This cannot be combined with the coverage command, which needs the same v8 output.

    • Examples

      • Run tests in a browser: virmator test web
      • Record what each test ran: virmator test node --footprint
      • Run tests in Node: virmator test node
    • Deps

    • Sub Commands

      • web

        Runs web tests in a browser using web-test-runner.

      • node

        Runs backend tests in Node.js using its built-in test runner.

        • Examples

          • virmator test node
        • Sub Commands

          • coverage

            Run tests and calculate code coverage.

          • update

            Run tests and update snapshots.

            • Examples
              • virmator test node update

Keywords