Skip to content

Commit f600dda

Browse files
authored
Explain focusing and excluding tests
1 parent 46cf3fc commit f600dda

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

template/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
3232
- [Writing Tests](#writing-tests)
3333
- [Testing Components](#testing-components)
3434
- [Using Third Party Assertion Libraries](#using-third-party-assertion-libraries)
35+
- [Focusing and Excluding Tests](#focusing-and-excluding-tests)
3536
- [Coverage Reporting](#coverage-reporting)
3637
- [Continuous Integration](#continuous-integration)
3738
- [Disabling jsdom](#disabling-jsdom)
@@ -670,6 +671,11 @@ import { expect } from 'chai';
670671
671672
and then use them in your tests like you normally do.
672673
674+
### Focusing and Excluding Tests
675+
676+
You can replace `it()` with `xit()` to temporarily exclude a test from being executed.
677+
Similarly, `fit()` lets you focus on a specific test without running any other tests.
678+
673679
### Coverage Reporting
674680
675681
Jest has an integrated coverage reporter that works well with ES6 and requires no configuration.

0 commit comments

Comments
 (0)