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: readme.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,10 +181,21 @@ test.serial(t => {
181
181
});
182
182
```
183
183
184
+
### Skipped tests
185
+
186
+
Skipped tests are shown in the output as skipped, but never run.
187
+
188
+
```js
189
+
test.skip('unicorn', t=> {
190
+
t.end();
191
+
});
192
+
```
193
+
184
194
### Before & after hooks
185
195
186
196
When setup and/or teardown is required, you can use `test.before()` and `test.after()`,
187
-
used in the same manner as `test()`. The test function given to `test.before()` and `test.after()` is called before/after all tests. You can also use `test.beforeEach()` and `test.afterEach()` if you need setup/teardown for each test. Hooks are run serially in the test file. Add as many of these as you want.
197
+
used in the same manner as `test()`. The test function given to `test.before()` and `test.after()` is called before/after all tests. You can also use `test.beforeEach()` and `test.afterEach()` if you need setup/teardown for each test. Hooks are run serially in the test file. Add as many of these as you want. You can optionally specify a title that is shown on failure.
0 commit comments