From 3c896f6bc58b45847660d4cab141d588e590d306 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Mon, 18 Apr 2022 21:17:56 -0800 Subject: [PATCH] fix(tests): installation tests (#13623) --- installation-tests/test_npx_global_codegen.sh | 0 installation-tests/test_npx_global_help.sh | 0 installation-tests/test_npx_global_install.sh | 0 packages/playwright-core/src/utils/stackTrace.ts | 3 --- 4 files changed, 3 deletions(-) mode change 100644 => 100755 installation-tests/test_npx_global_codegen.sh mode change 100644 => 100755 installation-tests/test_npx_global_help.sh mode change 100644 => 100755 installation-tests/test_npx_global_install.sh diff --git a/installation-tests/test_npx_global_codegen.sh b/installation-tests/test_npx_global_codegen.sh old mode 100644 new mode 100755 diff --git a/installation-tests/test_npx_global_help.sh b/installation-tests/test_npx_global_help.sh old mode 100644 new mode 100755 diff --git a/installation-tests/test_npx_global_install.sh b/installation-tests/test_npx_global_install.sh old mode 100644 new mode 100755 diff --git a/packages/playwright-core/src/utils/stackTrace.ts b/packages/playwright-core/src/utils/stackTrace.ts index a5a7070565..cca2eb18f2 100644 --- a/packages/playwright-core/src/utils/stackTrace.ts +++ b/packages/playwright-core/src/utils/stackTrace.ts @@ -35,7 +35,6 @@ const CORE_SRC = path.join(CORE_DIR, 'src'); const TEST_DIR_SRC = path.resolve(CORE_DIR, '..', 'playwright-test'); const TEST_DIR_LIB = path.resolve(CORE_DIR, '..', '@playwright', 'test'); const COVERAGE_PATH = path.join(CORE_DIR, '..', '..', 'tests', 'config', 'coverage.js'); -const WS_LIB = path.relative(process.cwd(), path.dirname(require.resolve('ws'))); export type StackFrame = { file: string, @@ -70,8 +69,6 @@ export function isInternalFileName(file: string, functionName?: string): boolean // Node 12 if (file === '_stream_readable.js' || file === '_stream_writable.js') return true; - if (file.startsWith(WS_LIB)) - return true; return false; }