Skip to content

Commit

Permalink
windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Aug 19, 2022
1 parent 7ed613b commit e8f607f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import * as path from 'path';
import * as fs from 'graceful-fs';
import slash = require('slash');
import {runYarnInstall} from '../Utils';
import {json as runWithJson} from '../runJest';

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

0 comments on commit e8f607f

Please sign in to comment.