chore: make stack filtering playwright dev-friendly (#5604)

This commit is contained in:
Pavel Feldman 2021-02-24 14:33:08 -08:00 committed by GitHub
parent f85deeba01
commit c91159f3f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ const PW_LIB_DIRS = [
'playwright-chromium',
'playwright-firefox',
'playwright-webkit',
].map(packageName => path.join('node_modules', packageName, 'lib'));
].map(packageName => path.sep + path.join(packageName, 'lib'));
export function captureStackTrace(): { stack: string, frames: StackFrame[] } {
const stack = new Error().stack!;