-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass --grep arg to mocha #15
Conversation
@@ -28,6 +28,8 @@ module.exports = inherit({ | |||
opts.retry = opts.retry || config.retry; | |||
}); | |||
|
|||
config.mochaOpts.grep = config.grep; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mochaOpts
может быть не объектом?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Там выше конфиг и переданные опции мержатся с опциями по умолчанию, там mochaOpts
всегда будут определяться.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ага, спасибо.
Доку бы дописать |
🆙 |
🆗 А как регексп передать? |
У меня работало что-то типо |
Grep string is being passed directly to mocha, mocha will convert it to regexp by itself.