Skip to content

Commit dadd03e

Browse files
committed
inline require slash in mock
1 parent dd8cfe0 commit dadd03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jest-runtime/src/__tests__/script_transformer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jest
1717
ReadStream: jest.requireActual('fs').ReadStream,
1818
WriteStream: jest.requireActual('fs').WriteStream,
1919
readFileSync: jest.fn((path, options) => {
20-
const normalizedPath = slash(path);
20+
const normalizedPath = require('slash')(path);
2121
if (mockFs[normalizedPath]) {
2222
return mockFs[normalizedPath];
2323
}

0 commit comments

Comments
 (0)