Skip to content

Commit

Permalink
Raise 10 minute timeouts to 15 minute timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
akd-io committed Jun 15, 2023
1 parent 740b5d6 commit 64ad6cc
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions packages/create-next-stack/src/tests/e2e/helpers/test-args.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { runCommand } from "../../../main/helpers/run-command"
import { performFinalChecks } from "./perform-final-checks"
import { prepareE2eTest } from "./prepare-e2e-test"
import { tenMinutes } from "./timeout"
import { fifteenMinutes } from "./timeout"

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

await runCommand(pathToCLI, args, {
timeout: tenMinutes,
timeout: fifteenMinutes,
cwd: runDirectory,
stdout: "inherit",
stderr: "inherit",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const tenMinutes = 1000 * 60 * 10
export const fifteenMinutes = 1000 * 60 * 15
export const oneMinute = 1000 * 60
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testCssModulesWithSassAllFlags",
Expand All @@ -22,5 +22,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testCssModulesWithSassOnly",
Expand All @@ -12,5 +12,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testCssModulesAllFlags",
Expand All @@ -22,5 +22,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testCssModulesOnly",
Expand All @@ -12,5 +12,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testEmotionAllFlags",
Expand All @@ -25,5 +25,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testEmotionOnly",
Expand All @@ -12,5 +12,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
4 changes: 2 additions & 2 deletions packages/create-next-stack/src/tests/e2e/tests/npm.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from "@jest/globals"
import { exists } from "../../../main/helpers/exists"
import { testArgsWithFinalChecks } from "../helpers/test-args"
import { tenMinutes } from "../helpers/timeout"
import { fifteenMinutes } from "../helpers/timeout"

test(
"testNpm",
Expand Down Expand Up @@ -35,5 +35,5 @@ test(
const pnpmLockExists = await exists(`${runDirectory}/pnpm-lock.yaml`)
expect(pnpmLockExists).toBe(false)
},
tenMinutes
fifteenMinutes
)
4 changes: 2 additions & 2 deletions packages/create-next-stack/src/tests/e2e/tests/pnpm.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from "@jest/globals"
import { exists } from "../../../main/helpers/exists"
import { testArgsWithFinalChecks } from "../helpers/test-args"
import { tenMinutes } from "../helpers/timeout"
import { fifteenMinutes } from "../helpers/timeout"

test(
"testPnpm",
Expand Down Expand Up @@ -35,5 +35,5 @@ test(
const pnpmLockExists = await exists(`${runDirectory}/pnpm-lock.yaml`)
expect(pnpmLockExists).toBe(true)
},
tenMinutes
fifteenMinutes
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testStyledComponentsAllFlags",
Expand All @@ -22,5 +22,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testStyledComponentsOnly",
Expand All @@ -12,5 +12,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testTailwindCssAllFlags",
Expand All @@ -22,5 +22,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals"
import { testArgsWithFinalChecks } from "../../helpers/test-args"
import { tenMinutes } from "../../helpers/timeout"
import { fifteenMinutes } from "../../helpers/timeout"

test(
"testTailwindCssOnly",
Expand All @@ -12,5 +12,5 @@ test(
".",
])
},
tenMinutes
fifteenMinutes
)
4 changes: 2 additions & 2 deletions packages/create-next-stack/src/tests/e2e/tests/yarn.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from "@jest/globals"
import { exists } from "../../../main/helpers/exists"
import { testArgsWithFinalChecks } from "../helpers/test-args"
import { tenMinutes } from "../helpers/timeout"
import { fifteenMinutes } from "../helpers/timeout"

test(
"testYarn",
Expand Down Expand Up @@ -35,5 +35,5 @@ test(
const pnpmLockExists = await exists(`${runDirectory}/pnpm-lock.yaml`)
expect(pnpmLockExists).toBe(false)
},
tenMinutes
fifteenMinutes
)

0 comments on commit 64ad6cc

Please sign in to comment.