We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d88ac78 commit 353b37cCopy full SHA for 353b37c
packages/jest-cli/src/lib/__tests__/init.test.js
@@ -24,15 +24,18 @@ const resolveFromFixture = relativePath =>
24
path.resolve(__dirname, 'fixtures', relativePath);
25
26
const writeFileSync = fs.writeFileSync;
27
+const sep = path.sep;
28
29
describe('init', () => {
30
beforeEach(() => {
31
fs.writeFileSync = jest.fn();
32
+ path.sep = '/';
33
});
34
35
afterEach(() => {
36
jest.clearAllMocks();
37
fs.writeFileSync = writeFileSync;
38
+ path.sep = sep;
39
40
41
describe('project with package.json and no jest config', () => {
0 commit comments