1.0.4 • Published 1 year ago

@fordi-org/test-init v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Native Test Init

This command will set up Node's native test runner, with coverage support, under the package script node:test.

There is no installation necessary. To use it:

npx '@fordi-org/test-init'
Installing c8
Creating .c8rc (test reporter config) with basic defaults
Adding test runner script

This is equivalent to:

  1. Running npm i -D c8
  2. Creating .c8rc with the content:
    {
      "reporter": [
        "html"
      ],
      "all": true,
      "reportDir": "./coverage",
      "src": ".",
      "include": [
        "*",
        "**/*"
      ],
      "exclude": [
        "coverage/**/*",
        "*.test/**/*",
        "**/*.test*"
      ],
      "checkCoverage": true,
      "lines": 75,
      "functions": 75,
      "statements": 75,
      "branches": 75
    }
  3. Adding the script "node:test": "c8 -- node --test"
1.0.2

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago