1.0.5 • Published 6 months ago

@dotcom-tool-kit/node-test v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

dotcom-tool-kit/node-test

Run tests via the Node.js built-in test runner.

Installation & Usage

With Tool Kit already set up, install this plugin as a dev dependency:

npm install --save-dev @dotcom-tool-kit/node-test

And add it to your repo's .toolkitrc.yml:

plugins:
  - '@dotcom-tool-kit/node-test'

Tasks

NodeTest

Run tests via the Node.js built-in test runner

Task options

PropertyDescriptionTypeDefault
concurrencyThe number of test processes to run in parallel. See https://nodejs.org/docs/latest-v20.x/api/test.html#runoptionsnumber (int, >0) or booleanfalse
filesGlob patterns used to find test files to runArray<string>["**/*.test.?(c\|m)js","**/*-test.?(c\|m)js","**/*_test.?(c\|m)js","**/test-*.?(c\|m)js","**/test.?(c\|m)js","**/test/**/*.?(c\|m)js"]
forceExitWhether to force exit the test process if something is holding it openbooleanfalse
ignoreGlob patterns for files to ignore when running testsArray<string>["**/node_modules/**"]
watchWhether to run tests in "watch" mode, automatically rerunning them when related files changebooleanfalse
customOptionsAdditional options to pass to the test runner, for those that Tool Kit does not explicitly support. See https://nodejs.org/docs/latest-v20.x/api/test.html#runoptionsObject with dynamic keys of type string and values of type unknown (optional & nullable)

All properties are optional.

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

7 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago