Skip to content
This repository was archived by the owner on Aug 31, 2022. It is now read-only.

Commit f89de4d

Browse files
committed
Fix jest default timeouts
1 parent 12fe4d9 commit f89de4d

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

e2etests

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ fi
1616
printf -- "... done running \"yarn install\" command.\n"
1717
printf -- "NODE_ENV=%s\n" "${NODE_ENV}"
1818
printf -- "Running \"yarn start\" command in the background...\n"
19-
yarn start &
19+
yarn start:mock &
2020
yarn_start_pid=${!}
2121
if [[ -z "${yarn_start_pid}" ]]; then
22-
printf -- "yarn e2e tests failed! (could not execute \"yarn start\" in background)\n" >&2
22+
printf -- "yarn e2e tests failed! (could not execute \"yarn start:mock\" in background)\n" >&2
2323
exit 1
2424
fi
2525
# Wait checking once a second for the web server to show up on port
@@ -37,7 +37,7 @@ done
3737
curl -X GET http://localhost:8000/dashboard/
3838
res=${?}
3939
if [[ ${res} -eq 0 ]]; then
40-
printf -- "... \"yarn start\" web server up and running.\n"
40+
printf -- "... \"yarn start:mock\" web server up and running.\n"
4141

4242
# Now that the web server is running in the background, we can run
4343
# the E2E tests which drive a headless browser against our server.
@@ -46,7 +46,7 @@ if [[ ${res} -eq 0 ]]; then
4646
res=${?}
4747
printf -- "... E2E tests finished (%s).\n" ${res}
4848
else
49-
printf -- "... \"yarn start\" failed to start web server (%s).\n" ${res}
49+
printf -- "... \"yarn start:mock\" failed to start web server (%s).\n" ${res}
5050
fi
5151
# The yarn start process leaves many processes lying around unless we
5252
# explicitly kill them.

src/e2e/controllers.e2e.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import puppeteer from 'puppeteer';
22
import { mockControllers, mockIndices } from '../../mock/api';
33

4+
jest.setTimeout(30000);
5+
46
let browser;
57
let page;
68

src/e2e/results.e2e.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import puppeteer from 'puppeteer';
22
import { mockControllers, mockIndices, mockResults } from '../../mock/api';
33

4+
jest.setTimeout(30000);
5+
46
let browser;
57
let page;
68

src/e2e/search.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { mockIndices, mockMappings, mockSearch } from '../../mock/api';
33

44
let browser;
55
let page;
6+
jest.setTimeout(30000);
67

78
beforeAll(async () => {
89
browser = await puppeteer.launch({

src/e2e/session.e2e.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import puppeteer from 'puppeteer';
22
import { mockControllers, mockIndices, mockSession } from '../../mock/api';
33

4+
jest.setTimeout(30000);
5+
46
let browser;
57
let page;
68

0 commit comments

Comments
 (0)