Skip to content

Commit fb56df7

Browse files
committed
Update timeouts
1 parent 33f2490 commit fb56df7

16 files changed

+45
-39
lines changed

packages/create-next-stack/src/tests/e2e/helpers/test-args.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { runCommand } from "../../../main/helpers/run-command"
22
import { performFinalChecks } from "./perform-final-checks"
33
import { prepareE2eTest } from "./prepare-e2e-test"
4-
import { defaultE2eTimeout } from "./timeout"
4+
import { tenMinutes } from "./timeout"
55

66
/**
77
* Prepare an e2e test and run the CLI with the given arguments.
@@ -13,7 +13,7 @@ export const testArgsWithoutFinalChecks = async (args: string[]) => {
1313
const { pathToCLI, runDirectory } = await prepareE2eTest()
1414

1515
await runCommand(pathToCLI, args, {
16-
timeout: defaultE2eTimeout,
16+
timeout: tenMinutes,
1717
cwd: runDirectory,
1818
stdout: "inherit",
1919
stderr: "inherit",
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
/**
2-
* Default timeout for e2e tests.
3-
* 10 minutes in milliseconds.
4-
*/
5-
export const defaultE2eTimeout = 1000 * 60 * 10
1+
export const tenMinutes = 1000 * 60 * 10
2+
export const oneMinute = 1000 * 60

packages/create-next-stack/src/tests/e2e/tests/css-modules-with-sass/css-modules-with-sass-all-flags.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from "@jest/globals"
22
import { testArgsWithFinalChecks } from "../../helpers/test-args"
3-
import { defaultE2eTimeout } from "../../helpers/timeout"
3+
import { tenMinutes } from "../../helpers/timeout"
44

55
test(
66
"testCssModulesWithSassAllFlags",
@@ -19,5 +19,5 @@ test(
1919
".",
2020
])
2121
},
22-
defaultE2eTimeout
22+
tenMinutes
2323
)

packages/create-next-stack/src/tests/e2e/tests/css-modules-with-sass/css-modules-with-sass-only.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from "@jest/globals"
22
import { testArgsWithFinalChecks } from "../../helpers/test-args"
3-
import { defaultE2eTimeout } from "../../helpers/timeout"
3+
import { tenMinutes } from "../../helpers/timeout"
44

55
test(
66
"testCssModulesWithSassOnly",
@@ -12,5 +12,5 @@ test(
1212
".",
1313
])
1414
},
15-
defaultE2eTimeout
15+
tenMinutes
1616
)

packages/create-next-stack/src/tests/e2e/tests/css-modules/css-modules-all-flags.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from "@jest/globals"
22
import { testArgsWithFinalChecks } from "../../helpers/test-args"
3-
import { defaultE2eTimeout } from "../../helpers/timeout"
3+
import { tenMinutes } from "../../helpers/timeout"
44

55
test(
66
"testCssModulesAllFlags",
@@ -19,5 +19,5 @@ test(
1919
".",
2020
])
2121
},
22-
defaultE2eTimeout
22+
tenMinutes
2323
)

packages/create-next-stack/src/tests/e2e/tests/css-modules/css-modules-only.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from "@jest/globals"
22
import { testArgsWithFinalChecks } from "../../helpers/test-args"
3-
import { defaultE2eTimeout } from "../../helpers/timeout"
3+
import { tenMinutes } from "../../helpers/timeout"
44

55
test(
66
"testCssModulesOnly",
@@ -12,5 +12,5 @@ test(
1212
".",
1313
])
1414
},
15-
defaultE2eTimeout
15+
tenMinutes
1616
)

packages/create-next-stack/src/tests/e2e/tests/emotion/emotion-all-flags.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from "@jest/globals"
22
import { testArgsWithFinalChecks } from "../../helpers/test-args"
3-
import { defaultE2eTimeout } from "../../helpers/timeout"
3+
import { tenMinutes } from "../../helpers/timeout"
44

55
test(
66
"testEmotionAllFlags",
@@ -22,5 +22,5 @@ test(
2222
".",
2323
])
2424
},
25-
defaultE2eTimeout
25+
tenMinutes
2626
)

packages/create-next-stack/src/tests/e2e/tests/emotion/emotion-only.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from "@jest/globals"
22
import { testArgsWithFinalChecks } from "../../helpers/test-args"
3-
import { defaultE2eTimeout } from "../../helpers/timeout"
3+
import { tenMinutes } from "../../helpers/timeout"
44

55
test(
66
"testEmotionOnly",
@@ -12,5 +12,5 @@ test(
1212
".",
1313
])
1414
},
15-
defaultE2eTimeout
15+
tenMinutes
1616
)

packages/create-next-stack/src/tests/e2e/tests/styled-components/styled-components-all-flags.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from "@jest/globals"
22
import { testArgsWithFinalChecks } from "../../helpers/test-args"
3-
import { defaultE2eTimeout } from "../../helpers/timeout"
3+
import { tenMinutes } from "../../helpers/timeout"
44

55
test(
66
"testStyledComponentsAllFlags",
@@ -19,5 +19,5 @@ test(
1919
".",
2020
])
2121
},
22-
defaultE2eTimeout
22+
tenMinutes
2323
)

packages/create-next-stack/src/tests/e2e/tests/styled-components/styled-components-only.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test } from "@jest/globals"
22
import { testArgsWithFinalChecks } from "../../helpers/test-args"
3-
import { defaultE2eTimeout } from "../../helpers/timeout"
3+
import { tenMinutes } from "../../helpers/timeout"
44

55
test(
66
"testStyledComponentsOnly",
@@ -12,5 +12,5 @@ test(
1212
".",
1313
])
1414
},
15-
defaultE2eTimeout
15+
tenMinutes
1616
)

0 commit comments

Comments
 (0)