Skip to content

Commit f18221c

Browse files
committed
test: ignore sourceRoot in sourcemap snapshots
1 parent ba85398 commit f18221c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

playground/test-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ export const formatSourcemapForSnapshot = (map: any): any => {
298298
const m = { ...map }
299299
delete m.file
300300
delete m.names
301+
delete m.sourceRoot
301302
m.sources = m.sources.map((source) => source.replace(root, '/root'))
302303
return m
303304
}

0 commit comments

Comments
 (0)