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