Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Pavel Feldmanc91159f3f728
diff --git a/src/utils/stackTrace.ts b/src/utils/stackTrace.ts
index 69aa768fbb..7fe6d1c4f2 100644
--- a/src/utils/stackTrace.ts
+++ b/src/utils/stackTrace.ts
@@ -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!;