jest-wrap

v1.7.0
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

audit

npm audit

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

jest23

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

jest24

npm run --silent jest24.0 && npm run --silent jest24.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

jest23.0

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

jest23.x

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

jest24.0

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

jest24.x

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

posttest

npm run audit

preaudit

npm install --package-lock --package-lock-only

jest:only

jest test/jest-only/*

postaudit

rm package-lock.json

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
npm i jest-wrap

Metadata

  • MIT
  • >= 0.4
  • Jordan Harband
  • released 5/12/2020

Downloads