mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Exclude fix for grunt coverage task
no issue - fixes grunt coverage task which was erroring with the message: 'Fatal error: spawn Unknown system errno 7' - using glob matching results in expanding to cover every file with -x in the mocha command, this was causing some sort of overflow type error. - we can just exclude the directory and this is much quicker & makes more sense
This commit is contained in:
parent
45226bcaaa
commit
685ceac324
1 changed files with 2 additions and 2 deletions
|
@ -227,7 +227,7 @@ var _ = require('lodash'),
|
|||
mask: '**/*_spec.js',
|
||||
coverageFolder: 'core/test/coverage/unit',
|
||||
mochaOptions: ['--timeout=15000'],
|
||||
excludes: ['core/client/**', 'core/server/built']
|
||||
excludes: ['core/client', 'core/server/built']
|
||||
}
|
||||
},
|
||||
coverage_all: {
|
||||
|
@ -241,7 +241,7 @@ var _ = require('lodash'),
|
|||
coverageFolder: 'core/test/coverage/all',
|
||||
mask: '**/*_spec.js',
|
||||
mochaOptions: ['--timeout=15000'],
|
||||
excludes: ['core/client/**', 'core/server/built']
|
||||
excludes: ['core/client', 'core/server/built']
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue