Skip to content

Commit e8f607f

Browse files
committed
windows?
1 parent 7ed613b commit e8f607f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import * as path from 'path';
99
import * as fs from 'graceful-fs';
10+
import slash = require('slash');
1011
import {runYarnInstall} from '../Utils';
1112
import {json as runWithJson} from '../runJest';
1213

@@ -32,8 +33,8 @@ it('successfully runs the tests inside `to-match-inline-snapshot-with-jsx/`', ()
3233
const updateSnapshotRun = runWithJson(DIR, ['--updateSnapshot']);
3334
expect(
3435
updateSnapshotRun.json.testResults[0].message.replace(
35-
process.cwd(),
36-
'<rootDir>',
36+
new RegExp(`${process.cwd()}[^:]*`),
37+
match => slash(match.replace(process.cwd(), '<rootDir>')),
3738
),
3839
).toMatchInlineSnapshot(`
3940
" ● Test suite failed to run

0 commit comments

Comments
 (0)