From 417c9a4d61f87831063b79e1d8054006ae659792 Mon Sep 17 00:00:00 2001 From: Brian Stone Date: Tue, 31 Jul 2018 15:02:25 -0700 Subject: [PATCH] Do not run tests in build folders. --- src/js/createJestConfig.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/createJestConfig.js b/src/js/createJestConfig.js index 1fe2507..0e0f7b1 100644 --- a/src/js/createJestConfig.js +++ b/src/js/createJestConfig.js @@ -13,6 +13,7 @@ const createJestConfig = () => ({ }, testMatch: ['/**/__tests__/**/*.test.js', '/**/*.test.js'], testEnvironment: 'node', + testPathIgnorePatterns: ['/node_modules/', '/lib/', '/es/'], setupTestFrameworkScriptFile: '/test-setup/setup-globals.js', });