Skip to content

Commit a7acfc4

Browse files
committed
fix: include sources
1 parent 5c67b06 commit a7acfc4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/browser-playwright/src/commands/trace.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ export const startTracing: BrowserCommand<[]> = async ({ context, project, provi
1515
await context.tracing.start({
1616
screenshots: options.screenshots ?? true,
1717
snapshots: options.snapshots ?? true,
18-
// currently, PW shows sources in private methods
19-
sources: false,
18+
sources: options.sources ?? true,
2019
}).catch(() => {
2120
provider.tracingContexts.delete(sessionId)
2221
})

packages/vitest/src/node/types/browser.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ export interface ResolvedBrowserOptions extends BrowserConfigOptions {
405405
tracesDir?: string
406406
screenshots?: boolean
407407
snapshots?: boolean
408-
// TODO: map locations to test ones
409-
// sources?: boolean
408+
sources?: boolean
410409
}
411410
}
412411

0 commit comments

Comments
 (0)