0
Fork 0
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:
Hannah Wolfe 2016-06-01 12:49:36 +01:00
parent 45226bcaaa
commit 685ceac324

View file

@ -227,7 +227,7 @@ var _ = require('lodash'),
mask: '**/*_spec.js', mask: '**/*_spec.js',
coverageFolder: 'core/test/coverage/unit', coverageFolder: 'core/test/coverage/unit',
mochaOptions: ['--timeout=15000'], mochaOptions: ['--timeout=15000'],
excludes: ['core/client/**', 'core/server/built'] excludes: ['core/client', 'core/server/built']
} }
}, },
coverage_all: { coverage_all: {
@ -241,7 +241,7 @@ var _ = require('lodash'),
coverageFolder: 'core/test/coverage/all', coverageFolder: 'core/test/coverage/all',
mask: '**/*_spec.js', mask: '**/*_spec.js',
mochaOptions: ['--timeout=15000'], mochaOptions: ['--timeout=15000'],
excludes: ['core/client/**', 'core/server/built'] excludes: ['core/client', 'core/server/built']
} }
} }