1.0.0 • Published 5 years ago
tape-only v1.0.0
tape-only
Customise the behaviour of your tape.only tests.
Install
npm install tape-only --save-devUsage
const tape = require('tape');
const tapeOnly = require('tape-only');
const test = tapeOnly(tape, { mode: 'many' });Modes:
one: Runs only onetape.onlytest. This is the default.many: Runs manytape.onlytests.ignore: Runstape.onlytests as though they weren't marked only.
Omitting mode will fallback to the TAPE_ONLY environment variable:
TAPE_ONLY=many tape 'tests/**/*.test.js'1.0.0
5 years ago