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 fea9db8 commit 37ec078
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts
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 37ec078

Please sign in to comment.