Naughty Pinching Mannequins
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

iamtest

1.5.6 • Public • Published

iamtest

Latest Stable Version Build Status Test Coverage Dependency Status License

Installation

# with npm 
$ npm i iamtest -D
 
# with yarn 
$ yarn add iamtest -D

Optional configuration

.iamtest.js

module.exports = {
    rootPath: 'src/tests',
    ignorePath: [],
};

Usage

global

$ iamtest

local

$ npx iamtest
$ BABEL_ENV=test npx iamtest --babel

package.json

{
  "script": {
    "test": "iamtest"
  }
}
Options:
  -r, --reporter  test reporter
        [choices: "dots""spec""summary""tape""silent"] [default: "dots"]
  -c, --coverage  coverage reporter
        [choices: "console""html""json""json-summary""lcov""lcovonly",
                                            "text""text-lcov""text-summary"]
  --web           web server for coverage report                        [number]
  -w, --watch     watch for changes                                    [boolean]
  --child         child process                                        [boolean]
  --verbose       debug log                                            [boolean]
  --coverageDir   see nyc --report-dir                                  [string]
  --babel         babel                                                [boolean]
  --flow          flow remove types                                    [boolean]
  -h, --help      Show help                                            [boolean]

Example

package.json

{
  "script": {
    "test": "iamtest",
    "test:unit": "iamtest ./test/unit/*",
    "codecov": "iamtest ./test/unit/* -c lcovonly && codecov"
  }
}

Keywords

none

install

npm i iamtest

Downloadsweekly downloads

10

version

1.5.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar