Skip to content

Commit

Permalink
ci: skip next-pages/dev-server on windows (#11256)
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro authored May 22, 2024
1 parent cc0bce6 commit d4b3f16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions test/harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const isPosix = isMacOS || isLinux;
export const isWindows = process.platform === "win32";
export const isIntelMacOS = isMacOS && process.arch === "x64";
export const isDebug = Bun.version.includes("debug");
export const isCI = process.env.CI !== undefined;

export const bunEnv: NodeJS.ProcessEnv = {
...process.env,
Expand Down
7 changes: 4 additions & 3 deletions test/integration/next-pages/test/dev-server.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterAll, beforeAll, expect, test } from "bun:test";
import { bunEnv, bunExe, tmpdirSync, toMatchNodeModulesAt } from "../../../harness";
import { bunEnv, bunExe, isCI, isWindows, tmpdirSync, toMatchNodeModulesAt } from "../../../harness";
import { Subprocess } from "bun";
import { copyFileSync } from "fs";
import { join } from "path";
Expand Down Expand Up @@ -121,7 +121,8 @@ afterAll(() => {
// https://github.com/puppeteer/puppeteer/issues/7740
const puppeteer_unsupported = process.platform === "linux" && process.arch === "arm64";

test.skipIf(puppeteer_unsupported)(
// https://github.com/oven-sh/bun/issues/11255
test.skipIf(puppeteer_unsupported || (isWindows && isCI))(
"hot reloading works on the client (+ tailwind hmr)",
async () => {
expect(dev_server).not.toBeUndefined();
Expand Down Expand Up @@ -156,5 +157,5 @@ test.skipIf(puppeteer_unsupported)(
// @ts-expect-error
timeout = undefined;
},
30000,
100_000,
);

0 comments on commit d4b3f16

Please sign in to comment.