From 29cd69913b9f8bb9d0bff9ec6b53df442ee5913f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Nison?= Date: Sat, 9 Mar 2019 20:52:39 +0000 Subject: [PATCH] Disables the pnp test on windows --- e2e/__tests__/pnp.test.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/e2e/__tests__/pnp.test.ts b/e2e/__tests__/pnp.test.ts index b1181ced02e2..177100619c1e 100644 --- a/e2e/__tests__/pnp.test.ts +++ b/e2e/__tests__/pnp.test.ts @@ -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); + } });