Skip to content

Commit

Permalink
Fix failing tests after upgrading ts-node
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Aug 25, 2022
1 parent 5177226 commit 6f13ac8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ export function analyzeModuleNotFoundError(error: any, configPath: string) {
const throwingFile = stackTrace
.filter((x) => x.file !== null)
.map((x) => x.file!)
// ignore frame related to source maps support
.filter((x) => !x.includes("@cspotcode/source-map-support"))
.find((x) => path.isAbsolute(x));

if (throwingFile === null || throwingFile === undefined) {
Expand Down

0 comments on commit 6f13ac8

Please sign in to comment.