Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cf695d5e
Commit
cf695d5e
authored
Mar 12, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
660a2ac8
54df7200
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
doc/development/testing_guide/frontend_testing.md
doc/development/testing_guide/frontend_testing.md
+6
-5
No files found.
doc/development/testing_guide/frontend_testing.md
View file @
cf695d5e
...
...
@@ -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
);
// ...
});
});
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment