Skip to content

Commit

Permalink
fix: don't break posix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Jan 26, 2020
1 parent 97e3675 commit e2088ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typegen/test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ expect.addSnapshotSerializer({
test: jest.isMockFunction,
print: v =>
JSON.stringify(v.mock.calls, null, 2)
.replace(/\\r\\n/g, '__EOL__')
.replace(/(\\r)?\\n/g, '__EOL__')
.replace(/\\+/g, '/') // fix Windows backslashes :'(
.replace(/__EOL__/g, '\\n')
.split(process.cwd().replace(/\\+/g, '/'))
Expand Down

0 comments on commit e2088ef

Please sign in to comment.