File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
dev-packages/e2e-tests/test-applications/browser-webworker-vite/tests Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import { expect , test } from '@playwright/test' ;
22import { waitForError , waitForTransaction } from '@sentry-internal/test-utils' ;
33
4- // In dev mode, worker files are served as .ts with query params
5- // In prod mode, worker files are bundled as .js with hashes
6- const WORKER_FILENAME_PATTERN = / w o r k e r ( - .+ \. j s | \\ .t s \? w o r k e r _ f i l e ) / ;
7- const WORKER2_FILENAME_PATTERN = / w o r k e r 2 ( - .+ \. j s | \\ .t s \? w o r k e r _ f i l e ) / ;
8- const WORKER3_FILENAME_PATTERN = / w o r k e r 3 ( - .+ \. j s | \\ .t s \? w o r k e r _ f i l e ) / ;
4+ // In dev mode, worker files are served as .ts with query params (e.g., worker.ts?worker_file&type=module)
5+ // In prod mode, worker files are bundled as .js with hashes (e.g., worker-abc123.js)
6+ const WORKER_FILENAME_PATTERN = / w o r k e r ( - .+ \. j s | \. t s \? w o r k e r _ f i l e ) / ;
7+ const WORKER2_FILENAME_PATTERN = / w o r k e r 2 ( - .+ \. j s | \. t s \? w o r k e r _ f i l e ) / ;
8+ const WORKER3_FILENAME_PATTERN = / w o r k e r 3 ( - .+ \. j s | \. t s \? w o r k e r _ f i l e ) / ;
99
1010test ( 'captures an error with debug ids and pageload trace context' , async ( { page } ) => {
1111 const errorEventPromise = waitForError ( 'browser-webworker-vite' , async event => {
You can’t perform that action at this time.
0 commit comments