Skip to content

Commit

Permalink
make mock serializer a bit more forgiving
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Sep 12, 2024
1 parent d975aa8 commit 69ec9de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/typegen/test/register-mock-serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ expect.addSnapshotSerializer({
},
})
.replaceAll(process.cwd(), '[cwd]')
.replaceAll(process.cwd().replaceAll('\\', '/'), '[cwd]'),
.replaceAll(process.cwd().replaceAll('\\', '/'), '[cwd]')
.split('\n')
.map(line => (line.trim() ? line : ''))
.join('\n'),
})

0 comments on commit 69ec9de

Please sign in to comment.