diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-10 06:10:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-10 06:10:51 +0000 |
commit | f626c314923e5d4947531eab001929741c6bced1 (patch) | |
tree | 195b05953ccdf48bb8abe5c455e19c1076fe5154 /doc/development/testing_guide/frontend_testing.md | |
parent | aaae73ac95c2696a71d510cca037b8df71ce73d3 (diff) | |
download | gitlab-ce-f626c314923e5d4947531eab001929741c6bced1.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/testing_guide/frontend_testing.md')
-rw-r--r-- | doc/development/testing_guide/frontend_testing.md | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/development/testing_guide/frontend_testing.md b/doc/development/testing_guide/frontend_testing.md index 9410c2f07a5..2845dde9a24 100644 --- a/doc/development/testing_guide/frontend_testing.md +++ b/doc/development/testing_guide/frontend_testing.md @@ -51,15 +51,12 @@ The default timeout for Jest is set in If your test exceeds that time, it fails. If you cannot improve the performance of the tests, you can increase the timeout -for a specific test using -[`setTestTimeout`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/frontend/__helpers__/timeout.js). +for a specific test using [`jest.setTimeout`](https://jestjs.io/docs/27.x/jest-object#jestsettimeouttimeout) ```javascript -import { setTestTimeout } from 'helpers/timeout'; - describe('Component', () => { it('does something amazing', () => { - setTestTimeout(500); + jest.setTimeout(500); // ... }); }); |