Skip to content

Commit 0322d26

Browse files
committed
Increase timeout to 20 minutes
1 parent 34775e5 commit 0322d26

File tree

15 files changed

+29
-29
lines changed

15 files changed

+29
-29
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 { fifteenMinutes } from "./timeout"
4+
import { twentyMinutes } 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: fifteenMinutes,
16+
timeout: twentyMinutes,
1717
cwd: runDirectory,
1818
stdout: "inherit",
1919
stderr: "inherit",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export const fifteenMinutes = 1000 * 60 * 15
1+
export const twentyMinutes = 1000 * 60 * 20
22
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 { fifteenMinutes } from "../../helpers/timeout"
3+
import { twentyMinutes } from "../../helpers/timeout"
44

55
test(
66
"testCssModulesWithSassAllFlags",
@@ -22,5 +22,5 @@ test(
2222
".",
2323
])
2424
},
25-
fifteenMinutes
25+
twentyMinutes
2626
)

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 { fifteenMinutes } from "../../helpers/timeout"
3+
import { twentyMinutes } from "../../helpers/timeout"
44

55
test(
66
"testCssModulesWithSassOnly",
@@ -12,5 +12,5 @@ test(
1212
".",
1313
])
1414
},
15-
fifteenMinutes
15+
twentyMinutes
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 { fifteenMinutes } from "../../helpers/timeout"
3+
import { twentyMinutes } from "../../helpers/timeout"
44

55
test(
66
"testCssModulesAllFlags",
@@ -22,5 +22,5 @@ test(
2222
".",
2323
])
2424
},
25-
fifteenMinutes
25+
twentyMinutes
2626
)

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 { fifteenMinutes } from "../../helpers/timeout"
3+
import { twentyMinutes } from "../../helpers/timeout"
44

55
test(
66
"testCssModulesOnly",
@@ -12,5 +12,5 @@ test(
1212
".",
1313
])
1414
},
15-
fifteenMinutes
15+
twentyMinutes
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 { fifteenMinutes } from "../../helpers/timeout"
3+
import { twentyMinutes } from "../../helpers/timeout"
44

55
test(
66
"testEmotionAllFlags",
@@ -25,5 +25,5 @@ test(
2525
".",
2626
])
2727
},
28-
fifteenMinutes
28+
twentyMinutes
2929
)

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 { fifteenMinutes } from "../../helpers/timeout"
3+
import { twentyMinutes } from "../../helpers/timeout"
44

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, test } from "@jest/globals"
22
import { exists } from "../../../main/helpers/exists"
33
import { testArgsWithFinalChecks } from "../helpers/test-args"
4-
import { fifteenMinutes } from "../helpers/timeout"
4+
import { twentyMinutes } from "../helpers/timeout"
55

66
test(
77
"testNpm",
@@ -35,5 +35,5 @@ test(
3535
const pnpmLockExists = await exists(`${runDirectory}/pnpm-lock.yaml`)
3636
expect(pnpmLockExists).toBe(false)
3737
},
38-
fifteenMinutes
38+
twentyMinutes
3939
)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect, test } from "@jest/globals"
22
import { exists } from "../../../main/helpers/exists"
33
import { testArgsWithFinalChecks } from "../helpers/test-args"
4-
import { fifteenMinutes } from "../helpers/timeout"
4+
import { twentyMinutes } from "../helpers/timeout"
55

66
test(
77
"testPnpm",
@@ -35,5 +35,5 @@ test(
3535
const pnpmLockExists = await exists(`${runDirectory}/pnpm-lock.yaml`)
3636
expect(pnpmLockExists).toBe(true)
3737
},
38-
fifteenMinutes
38+
twentyMinutes
3939
)

0 commit comments

Comments
 (0)