Skip to content

Commit b427ac4

Browse files
committed
Fix more tests
1 parent 8ff111b commit b427ac4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/integration-tests/fixtures/disabled-debug-id-injection/disabled-debug-id-injection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { testIfNodeMajorVersionIsLessThan18 } from "../../utils/testIf";
66

77
function checkBundle(bundlePath1: string, bundlePath2: string) {
88
const process1Output = childProcess.execSync(`node ${bundlePath1}`, { encoding: "utf-8" });
9-
expect(process1Output).toBe("undefined\n");
9+
expect(process1Output).toMatch(/undefined/);
1010

1111
const process2Output = childProcess.execSync(`node ${bundlePath2}`, { encoding: "utf-8" });
12-
expect(process2Output).toBe("undefined\n");
12+
expect(process2Output).toMatch(/undefined/);
1313
}
1414

1515
describe("should not inject debug IDs when `sourcemaps.disable` is `true`", () => {

packages/integration-tests/utils/create-cjs-bundles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { sentryRollupPlugin } from "@sentry/rollup-plugin";
1212

1313
const [NODE_MAJOR_VERSION] = process.version.split(".").map(Number) as [number];
1414

15-
type Bundlers = "webpack4" | "webpack5" | "esbuild" | "rollup" | "rollup4" | "vite" | "vite6";
15+
type Bundlers = "webpack4" | "webpack5" | "esbuild" | "rollup" | "rollup4" | "vite" | "vite6" | string;
1616

1717
export function createCjsBundles(
1818
entrypoints: { [name: string]: string },
@@ -38,7 +38,7 @@ export function createCjsBundles(
3838
});
3939
}
4040

41-
if (NODE_MAJOR_VERSION >= 18 && plugins.length === 0 || plugins.includes("vite6")) {
41+
if ((NODE_MAJOR_VERSION >= 18 && plugins.length === 0) || plugins.includes("vite6")) {
4242
const vite6 = require("vite6");
4343
void vite6.build({
4444
clearScreen: false,

0 commit comments

Comments
 (0)