Search code examples
javascriptnode.jsunit-testingtapnode.js-tape

When using (substack's) Tape module for testing, how do I run only one test in a file?


When using Tape how do I run a specific test and ignore all other tests?


Solution

  • According to the docs: Change that test's code from test(//etc) to test.only(//etc). It will be the only test run for that process.

    Otherwise, you can put a certain test or tests in a separate file and just run that file alone.