Skip to content

Commit 158b61b

Browse files
committed
add --import flag
1 parent 3b98f82 commit 158b61b

File tree

7 files changed

+10
-4
lines changed

7 files changed

+10
-4
lines changed

dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export default defineNuxtConfig({
1919
},
2020
sentry: {
2121
autoInjectServerSentry: 'top-level-import',
22-
}
22+
},
2323
});

dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@
2121
"@nuxt/test-utils": "^3.14.1",
2222
"@playwright/test": "^1.44.1",
2323
"@sentry-internal/test-utils": "link:../../../test-utils"
24+
},
25+
"overrides": {
26+
"nitropack": "~2.9.7",
27+
"ofetch": "^1.4.0"
2428
}
2529
}

dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"generate": "nuxt generate",
1010
"preview": "nuxt preview",
1111
"start": "node .output/server/index.mjs",
12+
"start:import": "node --import ./.output/server/sentry.server.config.mjs .output/server/index.mjs",
1213
"clean": "npx nuxi cleanup",
1314
"test": "playwright test",
1415
"test:build": "pnpm install && npx playwright install && pnpm build",

dev-packages/e2e-tests/test-applications/nuxt-3-min/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const nuxtConfigOptions: ConfigOptions = {
1212
* Like this: import { expect, test } from '@nuxt/test-utils/playwright' */
1313

1414
const config = getPlaywrightConfig({
15-
startCommand: `pnpm start`,
15+
startCommand: `pnpm start:import`,
1616
use: { ...nuxtConfigOptions },
1717
});
1818

dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export default defineNuxtConfig({
1919
},
2020
sentry: {
2121
autoInjectServerSentry: 'experimental_dynamic-import',
22-
}
22+
},
2323
});

dev-packages/e2e-tests/test-applications/nuxt-3/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"generate": "nuxt generate",
99
"preview": "nuxt preview",
1010
"start": "node .output/server/index.mjs",
11+
"start:import": "node --import ./.output/server/sentry.server.config.mjs .output/server/index.mjs",
1112
"clean": "npx nuxi cleanup",
1213
"test": "playwright test",
1314
"test:build": "pnpm install && npx playwright install && pnpm build",

dev-packages/e2e-tests/test-applications/nuxt-3/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const nuxtConfigOptions: ConfigOptions = {
1212
* Like this: import { expect, test } from '@nuxt/test-utils/playwright' */
1313

1414
const config = getPlaywrightConfig({
15-
startCommand: `pnpm start`,
15+
startCommand: `pnpm start:import`,
1616
use: { ...nuxtConfigOptions },
1717
});
1818

0 commit comments

Comments
 (0)