diff --git a/.neutrinorc.js b/.neutrinorc.js index c1461319a..b1c460d3e 100644 --- a/.neutrinorc.js +++ b/.neutrinorc.js @@ -119,7 +119,7 @@ module.exports = { patterns: ['ui/contribute.json', 'ui/revision.txt', 'ui/robots.txt'], }, ], - '@neutrinojs/jest', + process.env.NODE_ENV === 'test' && '@neutrinojs/jest', neutrino => { neutrino.config .plugin('provide') diff --git a/jest.config.js b/jest.config.js index 48b74ff9e..6ed64f5af 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,5 @@ const neutrino = require('neutrino'); -process.env.NODE_ENV = process.env.NODE_ENV || 'test'; +process.env.NODE_ENV = 'test'; module.exports = neutrino().jest();