From fa2b6d7f13dbbcd138797766c1b3a0680988496d Mon Sep 17 00:00:00 2001 From: Daniel Stockman Date: Mon, 4 Feb 2019 14:25:59 -0800 Subject: [PATCH] chore(test): Add workaround for bad Jest caching behavior --- jest.config.js | 2 ++ jest.integration.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/jest.config.js b/jest.config.js index d41c395631..538a170af3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,8 @@ "use strict"; module.exports = { + // workaround https://github.com/facebook/jest/pull/5862 + name: "lerna-unit", clearMocks: true, // windows ci is terribly slow, so let's not burden it with coverage collectCoverage: process.env.CI && process.env.TRAVIS_OS_NAME !== "windows", diff --git a/jest.integration.js b/jest.integration.js index 7cc9c96e92..fa3362c813 100644 --- a/jest.integration.js +++ b/jest.integration.js @@ -1,6 +1,8 @@ "use strict"; module.exports = { + // workaround https://github.com/facebook/jest/pull/5862 + name: "lerna-integration", bail: true, modulePathIgnorePatterns: ["/__fixtures__/"], roots: ["/integration"],