Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
f600ddaa
Commit
f600ddaa
authored
8 years ago
by
Dan Abramov
Committed by
GitHub
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Explain focusing and excluding tests
parent
46cf3fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
template/README.md
+6
-0
template/README.md
with
6 additions
and
0 deletions
+6
-0
template/README.md
+
6
-
0
View file @
f600ddaa
...
...
@@ -32,6 +32,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
-
[
Writing Tests
](
#writing-tests
)
-
[
Testing Components
](
#testing-components
)
-
[
Using Third Party Assertion Libraries
](
#using-third-party-assertion-libraries
)
-
[
Focusing and Excluding Tests
](
#focusing-and-excluding-tests
)
-
[
Coverage Reporting
](
#coverage-reporting
)
-
[
Continuous Integration
](
#continuous-integration
)
-
[
Disabling jsdom
](
#disabling-jsdom
)
...
...
@@ -670,6 +671,11 @@ import { expect } from 'chai';
and then use them in your tests like you normally do.
### Focusing and Excluding Tests
You can replace
`it()`
with
`xit()`
to temporarily exclude a test from being executed.
Similarly,
`fit()`
lets you focus on a specific test without running any other tests.
### Coverage Reporting
Jest has an integrated coverage reporter that works well with ES6 and requires no configuration.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment