Skip to content

Commit

Permalink
Disables the pnp test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Mar 9, 2019
1 parent 86b09af commit 75c2eb6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions e2e/__tests__/pnp.test.ts
Expand Up @@ -16,9 +16,12 @@ beforeEach(() => {
});

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

0 comments on commit 75c2eb6

Please sign in to comment.