From 4e9762382365fa8d8d21e3c19906499aaede8013 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Thu, 28 May 2020 08:22:24 -0400 Subject: [PATCH] Fixed issue with jest picking up the built storybook folder causing tests to run out of memory. (#8096) --- jest.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jest.config.js b/jest.config.js index d8a040b2f..f416cf029 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,6 +10,7 @@ module.exports = { '!app/javascript/packs/**/*.js', // avoids running coverage on webpacker pack files '!**/__tests__/**', '!**/__stories__/**', + '!app/javascript/storybook-static/**/*.js', ], coverageThreshold: { global: { @@ -32,6 +33,7 @@ module.exports = { './config/webpack', // Allows developers to add utility modules that jest won't run as test suites. '/__tests__/utilities/', + './app/javascript/storybook-static', ], watchPlugins: [ 'jest-watch-typeahead/filename',