You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/01-writing-tests.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -118,9 +118,11 @@ You can use the `.only` modifier with all tests. It cannot be used with hooks or
118
118
119
119
*Note:* The `.only` modifier applies to the test file it's defined in, so if you run multiple test files, tests in other files will still run. If you want to only run the `test.only` test, provide just that test file to AVA.
120
120
121
+
You cannot update snapshots when using `.only()`.
122
+
121
123
## Skipping tests
122
124
123
-
Sometimes failing tests can be hard to fix. You can tell AVA to skip these tests using the `.skip` modifier. They'll still be shown in the output (as having been skipped) but are never run.
125
+
Sometimes failing tests can be hard to fix. You can tell AVA to temporarily skip these tests using the `.skip` modifier. They'll still be shown in the output (as having been skipped) but are never run.
124
126
125
127
```js
126
128
test.skip('will not be run', t=> {
@@ -130,6 +132,8 @@ test.skip('will not be run', t => {
130
132
131
133
You must specify the implementation function. You can use the `.skip` modifier with all tests and hooks, but not with `.todo()`. You can not apply further modifiers to `.skip`.
132
134
135
+
You cannot update snapshots when using `.skip()`. If the test is likely to be failing for a while, use `.failing()` instead.
136
+
133
137
## Test placeholders ("todo")
134
138
135
139
You can use the `.todo` modifier when you're planning to write a test. Like skipped tests these placeholders are shown in the output. They only require a title; you cannot specify the implementation function.
0 commit comments