jest-wrap

v1.3.1
Fluent pluggable interface for easily wrapping `describe` and `it` blocks in Jest tests.
jest test javascript js chai before after beforeEach afterEach and 8 more...

jest

npm run --silent jest:standard && npm run --silent jest:only

lint

eslint '**/*.js'

tape

node test/tape

test

npm run --silent tests-only

jest18

npm run --silent jest18.0 && npm run --silent jest18.x

jest19

npm run --silent jest19.0 && npm run --silent jest19.x

jest20

npm run --silent jest20.0 && npm run --silent jest20.x

jest21

npm run --silent jest21.0 && npm run --silent jest21.x

jest22

npm run --silent jest22.0 && npm run --silent jest22.x

pretest

npm run --silent lint

coverage

npm run --silent jest20.0 && npm run --silent cover:clean && npm run --silent cover:tape && npm run --silent cover:jest && npm run --silent cover:merge && npm run --silent cover:check

jest18.0

JEST=18.0.0 npm run install:jest && npm run --silent jest

jest18.x

JEST=18.x npm run install:jest && npm run --silent jest

jest19.0

JEST=19.0.0 npm run install:jest && npm run --silent jest

jest19.x

JEST=19.x npm run install:jest && npm run --silent jest

jest20.0

JEST=20.0.0 npm run install:jest && npm run --silent jest

jest20.x

JEST=20.x npm run install:jest && npm run --silent jest

jest21.0

JEST=21.0.0 npm run install:jest && npm run --silent jest

jest21.x

JEST=21.x npm run install:jest && npm run --silent jest

jest22.0

JEST=22.0.0 npm run install:jest && npm run --silent jest

jest22.x

JEST=22.x npm run install:jest && npm run --silent jest

posttest

npm run --silent security

security

nsp check

jest:only

jest test/jest-only/*

cover:jest

npm run cover:jest:standard && npm run cover:jest:only

cover:tape

istanbul cover test/tape --dir coverage/tape

prepublish

safe-publish-latest

tests-only

npm run --silent tape | faucet && npm run --silent jest20 && npm run --silent jest19 && npm run --silent jest18

cover:check

istanbul check-coverage && echo 100% code coverage, achievement unlocked!

cover:clean

rimraf coverage

cover:merge

istanbul-merge --out coverage/coverage.raw.json 'coverage/*/coverage.raw.json' && istanbul report --format html

install:jest

npm install --no-save jest@"${JEST}" && jest --version

jest:standard

jest test/jest/*

cover:jest:only

npm run jest:only -- --coverage --coverageDirectory coverage/jest-only

cover:jest:standard

npm run jest:standard -- --coverage --coverageDirectory coverage/jest

Metadata

  • MIT
  • >= 0.4
  • Jordan Harband
  • released 5/1/2018

Downloads

Maintainers