Allow to pass --hook-run-in-context
Closed this issue · 3 comments
kirill-konshin commented
if (options.hookRunInContext) {
args.push('--hook-run-in-context');
}
pocesar commented
you can do this using istanbulOptions
(any extra istanbul options that are not provided by the plugin), like this:
mocha_istanbul: {
main: {
options: {
istanbulOptions: ['--hook-run-in-context']
}
}
}
kirill-konshin commented
Yes, it helped. Funny thing is that if (options.istanbulOptions && options.istanbulOptions.length) {
is right there where I had put my hotfix and I haven't noticed it. Thanks for quick reply.
pocesar commented
np 👍