File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/integration-tests
fixtures/disabled-debug-id-injection Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ import { testIfNodeMajorVersionIsLessThan18 } from "../../utils/testIf";
66
77function 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 ( / u n d e f i n e d / ) ;
1010
1111 const process2Output = childProcess . execSync ( `node ${ bundlePath2 } ` , { encoding : "utf-8" } ) ;
12- expect ( process2Output ) . toBe ( " undefined\n" ) ;
12+ expect ( process2Output ) . toMatch ( / u n d e f i n e d / ) ;
1313}
1414
1515describe ( "should not inject debug IDs when `sourcemaps.disable` is `true`" , ( ) => {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { sentryRollupPlugin } from "@sentry/rollup-plugin";
1212
1313const [ 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
1717export 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 ,
You can’t perform that action at this time.
0 commit comments