зеркало из https://github.com/mozilla/treeherder.git
Bug 1364045 - Don't load '@neutrinojs/jest' in production (#4381)
Since it's in `devDependencies` so is not installed during deploys. Fixes: `Error: Cannot find module '@neutrinojs/jest'` https://dashboard.heroku.com/apps/treeherder-stage/activity/builds/8228fa8d-0209-43d3-8699-4e6c124b248f
This commit is contained in:
Родитель
4e2e66b203
Коммит
5c2602fd62
|
@ -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')
|
||||
|
|
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче