playwright/src/utils
Dmitry Gozman 4c6fa42810
fix(test runner): expose real stack traces and speed up locations (#7265)
Stop wrapping/prepending error messages so that we do not loose the stack trace. For this, update a few manually thrown errors with better messages (usually including a file path).

Speed up locations by doing manual `sourceMapSupport.wrapCallSite()` for a single call site. Performance gain in the runner process with 100 files x 100 tests each:
- 25% on the fresh run without babel cache;
- 80% on the cached run where babel is almost instant.

Also some obvious cleanups around stack traces (removing unused code).
2021-06-23 10:30:54 -07:00
..
binaryPaths.ts chore(typescript): enable esModuleInterop (#5409) 2021-02-11 06:36:15 -08:00
debugLogger.ts feat(browserServer): forward local ports (#6375) 2021-05-25 17:11:32 +02:00
errors.ts feat(scopes): make page a scope (#4300) 2020-11-02 13:06:54 -08:00
httpServer.ts feat(inspector): wire snapshots to inspector (#5628) 2021-02-26 14:16:32 -08:00
registry.ts chore: nuke 'webkit-technology-preview' experiment (#7164) 2021-06-15 23:58:30 -07:00
stackTrace.ts fix(test runner): expose real stack traces and speed up locations (#7265) 2021-06-23 10:30:54 -07:00
timeoutSettings.ts feat(debug): PWDEBUG=console vs PWDEBUG=inspector (#6213) 2021-04-20 15:58:34 -07:00
ubuntuVersion.ts chore: use fs.promises API instead of promisify (#6871) 2021-06-03 18:55:33 +02:00
utils.ts Revert "chore: update eslint config (#6840)" partly (#7268) 2021-06-23 11:08:35 +02:00