- Selectively run tests
- Run relevant tests based on file changes
- Test coverage
npm install tape-ui
Add script in package.json
{
"scripts": {
"tdd": "tape-ui -r @babel/register 'src/**/*.test.js'",
}
}
git clone [email protected]:andreidmt/tape-ui.git && \
cd tape-ui && \
npm run setup
# run tests (any `*.test.js`) once
npm test
# watch `src` folder for changes and run test automatically
npm run tdd
See the releases section for details.