test(ui): disable locale watching for tests

This commit is contained in:
Guillaume Chau
2018-05-12 15:33:38 +02:00
parent 826d72e85b
commit 43e0a646c2
@@ -51,7 +51,7 @@ function _loadFolder (root, context) {
}
function loadFolder (root, context) {
if (process.env.NODE_ENV !== 'production' && !watchedTrees.get(root)) {
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && !watchedTrees.get(root)) {
watchedTrees.set(root, true)
const watch = require('watch')
watch.watchTree(root, () => {