File tree Expand file tree Collapse file tree
dev-packages/e2e-tests/test-applications/nuxt-4 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 "clean" : " npx nuxi cleanup" ,
1313 "test" : " playwright test" ,
1414 "test:prod" : " TEST_ENV=production playwright test" ,
15- "test:dev" : " TEST_ENV=development playwright test environment" ,
16- "test:build" : " pnpm install && pnpm build" ,
15+ "test:dev" : " TEST_ENV=development playwright test environment db-drivers" ,
1716 "test:build" : " pnpm install && node ./scripts/build-with-prerender-event-sink.mjs" ,
1817 "test:build-canary" : " pnpm add nuxt@npm:nuxt-nightly@latest && pnpm add nitropack@npm:nitropack-nightly@latest && pnpm install --force && pnpm build" ,
1918 "test:assert" : " pnpm test:prod && pnpm test:dev" ,
2019 "test:prod:import" : " TEST_ENV=production-import playwright test"
2120 },
21+ "//" : " Pin ioredis to 5.10.1 because that's the last version before it publishes its own diagnostics channels" ,
2222 "dependencies" : {
2323 "@pinia/nuxt" : " ^0.5.5" ,
2424 "@sentry/nuxt" : " file:../../packed/sentry-nuxt-packed.tgz" ,
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ async function collectRequestSpans(path: string) {
1717}
1818
1919test ( 'Instruments ioredis automatically' , async ( { baseURL } ) => {
20+ // Dev relies on runtime injection (no build-time transform), but the dev bundle hoists the ioredis
21+ // import above the inlined `Sentry.init`, so its instrumented file loads before injection is active
22+ // and gets no channels (5.10.x has no native ones). mysql requires its file lazily, after init.
23+ test . skip ( process . env . TEST_ENV === 'development' , 'ioredis loads before runtime injection is active in dev' ) ;
24+
2025 const spansPromise = collectRequestSpans ( '/api/db-ioredis' ) ;
2126
2227 const response = await fetch ( `${ baseURL } /api/db-ioredis` ) ;
You can’t perform that action at this time.
0 commit comments