mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-20 12:38:42 -05:00
test(ui): disable locale watching for tests
This commit is contained in:
@@ -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, () => {
|
||||
|
||||
Reference in New Issue
Block a user