mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
🐛 fix grunt test (#8266)
no issue - it was not possible to run a single test in core/server/apps/.../tests
This commit is contained in:
parent
9d020c93fc
commit
8f7ee82122
@ -419,7 +419,7 @@ var overrides = require('./core/server/overrides'),
|
||||
grunt.fail.fatal('No test provided. `grunt test` expects a filename. e.g.: `grunt test:unit/apps_spec.js`. Did you mean `npm test` or `grunt validate`?');
|
||||
}
|
||||
|
||||
if (!test.match(/core\/test/)) {
|
||||
if (!test.match(/core\/test/) && !test.match(/core\/server/)) {
|
||||
test = 'core/test/' + test;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user