From 4fe4c4d791f3e911371767d8c1b867bb280a117e Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Mon, 10 Feb 2020 19:41:45 -0500 Subject: [PATCH] Fixed false negative of a frontend test suite failing. (#6005) --- jest.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jest.config.js b/jest.config.js index 56439a44d..bdcc67791 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,4 +10,7 @@ module.exports = { '\\.(svg|png)$': '/empty-module.js', }, snapshotSerializers: ['preact-render-spy/snapshot'], + // The webpack config folder for webpacker is excluded as it has a test.js file that gets + // picked up by jest if this folder is not excluded causing a false negative of a test suite failing. + testPathIgnorePatterns: ['/node_modules/', './config/webpack'], };