Skip to content

Conversation

@DenysKuchma
Copy link
Collaborator

Problem

When running TypeScript tests, error stack traces show paths to transpiled .temp.mjs files instead of original .ts source files, making it difficult to locate errors in code. #5362

Before:
Error: Element not found
at test.js:15 (D:/project/tests/.temp/001_test.temp.mjs:15:10)

After:
Error: Element not found
at test.js:15 (D:/project/tests/001_test.ts:15:10)

Solution

Add fixErrorStack() calls in all error handlers to replace .temp.mjs paths with original .ts paths using existing tsFileMapping().

@DenysKuchma DenysKuchma requested a review from DavertMik January 19, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants