Skip to content

Commit

Permalink
test: ignore sourceRoot in sourcemap snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 4, 2024
1 parent ba85398 commit f18221c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions playground/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ export const formatSourcemapForSnapshot = (map: any): any => {
const m = { ...map }
delete m.file
delete m.names
delete m.sourceRoot
m.sources = m.sources.map((source) => source.replace(root, '/root'))
return m
}
Expand Down

0 comments on commit f18221c

Please sign in to comment.