Skip to content

Commit 75c2eb6

Browse files
committed
Disables the pnp test on windows
1 parent 86b09af commit 75c2eb6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

e2e/__tests__/pnp.test.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ beforeEach(() => {
1616
});
1717

1818
it('sucessfully runs the tests inside `pnp/`', () => {
19-
const {json} = runWithJson(DIR, ['--no-cache', '--coverage'], {
20-
nodeOptions: `--require ${DIR}/.pnp.js`,
21-
});
22-
expect(json.success).toBe(true);
23-
expect(json.numTotalTestSuites).toBe(1);
19+
// https://github.com/facebook/jest/pull/8094#issuecomment-471220694
20+
if (process.platform !== 'win32') {
21+
const {json} = runWithJson(DIR, ['--no-cache', '--coverage'], {
22+
nodeOptions: `--require ${DIR}/.pnp.js`,
23+
});
24+
expect(json.success).toBe(true);
25+
expect(json.numTotalTestSuites).toBe(1);
26+
}
2427
});

0 commit comments

Comments
 (0)