Skip to content

Commit 0fc97ee

Browse files
committed
Merge branch 'timfish/test/integration-next' of https://github.com/getsentry/sentry-javascript-bundler-plugins into timfish/test/integration-next
2 parents c182d26 + 61b1a36 commit 0fc97ee

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

packages/integration-tests-next/fixtures/rolldown/query-param.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import { expect } from "vitest";
22
import { test } from "./utils";
33

4-
test(import.meta.url, ({ runRolldown, readOutputFiles }) => {
4+
test(import.meta.url, ({ runRolldown, readOutputFiles, ctx }) => {
5+
if (process.platform === "win32") {
6+
ctx.skip("Query params do not work in paths on Windows");
7+
return;
8+
}
9+
510
runRolldown();
611
expect(readOutputFiles()).toMatchInlineSnapshot(`
712
{

packages/integration-tests-next/fixtures/rolldown/utils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { basename, dirname, join } from "node:path";
22
import { createTempDir, readAllFiles, runBundler } from "../utils";
33
import { fileURLToPath } from "node:url";
44
import { rmSync } from "node:fs";
5-
import { test as vitestTest } from "vitest";
5+
import { TestContext, test as vitestTest } from "vitest";
66
import { execSync } from "node:child_process";
77

88
const cwd = dirname(fileURLToPath(import.meta.url));
@@ -14,6 +14,7 @@ type TestCallback = (props: {
1414
readOutputFiles: () => Record<string, string>;
1515
runFileInNode: (file: string) => string;
1616
createTempDir: () => string;
17+
ctx: TestContext;
1718
}) => void | Promise<void>;
1819

1920
export function test(url: string, callback: TestCallback) {
@@ -30,7 +31,7 @@ export function test(url: string, callback: TestCallback) {
3031
// eslint-disable-next-line @typescript-eslint/no-empty-function
3132
vitestTest.skip(testName);
3233
} else {
33-
vitestTest(`rolldown > ${testName}`, () =>
34+
vitestTest(`rolldown > ${testName}`, (ctx) =>
3435
callback({
3536
outDir,
3637
runRolldown: (env) =>
@@ -54,6 +55,7 @@ export function test(url: string, callback: TestCallback) {
5455
}).toString();
5556
},
5657
createTempDir: () => createTempDir(),
58+
ctx,
5759
})
5860
);
5961
}

0 commit comments

Comments
 (0)