Commit 54df7200 authored by Evan Read's avatar Evan Read

Merge branch 'docs-settesttimeout-jest-fe' into 'master'

Update setTestTimeout documentation

See merge request gitlab-org/gitlab-ce!25932
parents 8f918955 b1184de4
......@@ -35,15 +35,16 @@ If your test exceeds that time, it will fail.
If you cannot improve the performance of the tests, you can increase the timeout
for a specific test using
[`jest.setTimeout`](https://jestjs.io/docs/en/jest-object#jestsettimeouttimeout).
[`setTestTimeout`](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/spec/frontend/helpers/timeout.js).
```javascript
beforeAll(() => {
jest.setTimeout(500);
});
import { setTestTimeout } from 'helpers/timeout';
describe('Component', () => {
// ...
it('does something amazing', () => {
setTestTimeout(500);
// ...
});
});
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment