Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/GlobalAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ until the promise resolves as well.

Also under the aliases: `it.only(name, fn, timeout)` or `fit(name, fn, timeout)`

When you are debugging a large codebase, you will often only want to run a
When you are debugging a large test file, you will often only want to run a
subset of tests. You can use `.only` to specify which tests are the only ones
you want to run.
you want to run in that test file.

Optionally, you can provide a `timeout` (in milliseconds) for specifying how
long to wait before aborting. _Note: The default timeout is 5 seconds._
Expand All @@ -376,7 +376,8 @@ test('it is not snowing', () => {
});
```

Only the "it is raining" test will run, since it is run with `test.only`.
Only the "it is raining" test will run in that test file, since it is run with
`test.only`.

Usually you wouldn't check code using `test.only` into source control - you
would use it just for debugging, and remove it once you have fixed the broken
Expand Down