Skip to content

Commit 6579464

Browse files
committed
test: Ensure correct bundler is resolved
1 parent 7e76d7c commit 6579464

45 files changed

Lines changed: 465 additions & 344 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function test(url: string, callback: TestCallback) {
3939
outDir,
4040
runBundler: (env) =>
4141
runBundler(
42-
`rolldown --config ${testName}${configExt}`,
42+
`pnpm rolldown --config ${testName}${configExt}`,
4343
{
4444
cwd,
4545
env: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function test(url: string, callback: TestCallback) {
3333
outDir,
3434
runBundler: (env) =>
3535
runBundler(
36-
`rollup --config ${testName}${configExt}`,
36+
`pnpm rollup --config ${testName}${configExt}`,
3737
{
3838
cwd,
3939
env: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function test(url: string, callback: TestCallback) {
3333
outDir,
3434
runBundler: (env) =>
3535
runBundler(
36-
`rollup --config ${testName}${configExt}`,
36+
`pnpm rollup --config ${testName}${configExt}`,
3737
{
3838
cwd,
3939
env: {

packages/integration-tests-next/fixtures/vite4/after-upload-deletion.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ test(import.meta.url, ({ runBundler, readOutputFiles, runFileInNode }) => {
55
runBundler();
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
8-
"basic.js": "!(function() {
8+
"basic.js": "!function() {
99
try {
1010
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
1111
e.SENTRY_RELEASE = { id: "CURRENT_SHA" };
1212
var n = new e.Error().stack;
1313
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "00000000-0000-0000-0000-000000000000", e._sentryDebugIdIdentifier = "sentry-dbid-00000000-0000-0000-0000-000000000000");
1414
} catch (e2) {
1515
}
16-
})();
16+
}();
1717
console.log("hello world");
1818
//# sourceMappingURL=basic.js.map
1919
",

packages/integration-tests-next/fixtures/vite4/application-key.test.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,24 @@ test(import.meta.url, ({ runBundler, readOutputFiles }) => {
55
runBundler();
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
8-
"basic.js": "!(function() {
8+
"basic.js": "!function() {
99
try {
1010
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
1111
e.SENTRY_RELEASE = { id: "CURRENT_SHA" };
12-
e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = (function(e2) {
12+
e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e2) {
1313
for (var n2 = 1; n2 < arguments.length; n2++) {
1414
var a = arguments[n2];
15-
if (null != a) for (var t in a) a.hasOwnProperty(t) && (e2[t] = a[t]);
15+
if (null != a)
16+
for (var t in a)
17+
a.hasOwnProperty(t) && (e2[t] = a[t]);
1618
}
1719
return e2;
18-
})({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:1234567890abcdef": true });
20+
}({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:1234567890abcdef": true });
1921
var n = new e.Error().stack;
2022
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "00000000-0000-0000-0000-000000000000", e._sentryDebugIdIdentifier = "sentry-dbid-00000000-0000-0000-0000-000000000000");
2123
} catch (e2) {
2224
}
23-
})();
25+
}();
2426
console.log("hello world");
2527
",
2628
}

packages/integration-tests-next/fixtures/vite4/basic-cjs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ test(import.meta.url, ({ runBundler, readOutputFiles, runFileInNode }) => {
55
runBundler();
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
8-
"basic.js": "!(function() {
8+
"basic.js": "!function() {
99
try {
1010
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
1111
e.SENTRY_RELEASE = { id: "CURRENT_SHA" };
1212
var n = new e.Error().stack;
1313
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "00000000-0000-0000-0000-000000000000", e._sentryDebugIdIdentifier = "sentry-dbid-00000000-0000-0000-0000-000000000000");
1414
} catch (e2) {
1515
}
16-
})();
16+
}();
1717
console.log("hello world");
1818
",
1919
"sentry-cli-mock.json": "["releases","new","CURRENT_SHA"],

packages/integration-tests-next/fixtures/vite4/basic-release-disabled.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ test(import.meta.url, ({ runBundler, readOutputFiles }) => {
55
runBundler();
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
8-
"basic.js": "!(function() {
8+
"basic.js": "!function() {
99
try {
1010
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
1111
var n = new e.Error().stack;
1212
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "00000000-0000-0000-0000-000000000000", e._sentryDebugIdIdentifier = "sentry-dbid-00000000-0000-0000-0000-000000000000");
1313
} catch (e2) {
1414
}
15-
})();
15+
}();
1616
console.log("hello world");
1717
",
1818
}

packages/integration-tests-next/fixtures/vite4/basic-sourcemaps.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ test(import.meta.url, ({ runBundler, readOutputFiles, runFileInNode }) => {
55
runBundler();
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
8-
"basic.js": "!(function() {
8+
"basic.js": "!function() {
99
try {
1010
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
1111
e.SENTRY_RELEASE = { id: "CURRENT_SHA" };
1212
var n = new e.Error().stack;
1313
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "00000000-0000-0000-0000-000000000000", e._sentryDebugIdIdentifier = "sentry-dbid-00000000-0000-0000-0000-000000000000");
1414
} catch (e2) {
1515
}
16-
})();
16+
}();
1717
console.log("hello world");
1818
//# sourceMappingURL=basic.js.map
1919
",

packages/integration-tests-next/fixtures/vite4/basic.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ test(import.meta.url, ({ runBundler, readOutputFiles, runFileInNode }) => {
55
runBundler();
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
8-
"basic.js": "!(function() {
8+
"basic.js": "!function() {
99
try {
1010
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
1111
e.SENTRY_RELEASE = { id: "CURRENT_SHA" };
1212
var n = new e.Error().stack;
1313
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "00000000-0000-0000-0000-000000000000", e._sentryDebugIdIdentifier = "sentry-dbid-00000000-0000-0000-0000-000000000000");
1414
} catch (e2) {
1515
}
16-
})();
16+
}();
1717
console.log("hello world");
1818
",
1919
"sentry-cli-mock.json": "["releases","new","CURRENT_SHA"],

packages/integration-tests-next/fixtures/vite4/build-info.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test(import.meta.url, ({ runBundler, readOutputFiles }) => {
55
runBundler();
66
expect(readOutputFiles()).toMatchInlineSnapshot(`
77
{
8-
"basic.js": "!(function() {
8+
"basic.js": "!function() {
99
try {
1010
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
1111
e.SENTRY_RELEASE = { id: "build-information-injection-test" };
@@ -14,7 +14,7 @@ test(import.meta.url, ({ runBundler, readOutputFiles }) => {
1414
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "00000000-0000-0000-0000-000000000000", e._sentryDebugIdIdentifier = "sentry-dbid-00000000-0000-0000-0000-000000000000");
1515
} catch (e2) {
1616
}
17-
})();
17+
}();
1818
console.log("hello world");
1919
",
2020
}

0 commit comments

Comments
 (0)