You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a setup with karma. When I run karma start everything is ok. Tests are passing. But if try to do the same with grunt-karma the client.args does't apply!
This is how my karma config block in Gruntfile.js looks like:
In my karma.conf.js I have this client block with arguments to be passed to mocha:
client: {
mocha: {
ui: 'tdd'
}
},
So when I run grunt dev mocha doesn't get this ui parameter and that's why 'ReferenceError: Can't find variable: suite happens. I know that because if I comment client block in karma.conf.js and run karma start I get the same error. So why does this happen?
I have a setup with karma. When I run
karma start
everything is ok. Tests are passing. But if try to do the same with grunt-karma the client.args does't apply!This is how my karma config block in
Gruntfile.js
looks like:In my karma.conf.js I have this
client
block with arguments to be passed to mocha:So when I run
grunt dev
mocha doesn't get thisui
parameter and that's why'ReferenceError: Can't find variable: suite
happens. I know that because if I commentclient
block in karma.conf.js and runkarma start
I get the same error. So why does this happen?You can see my setup here: https://github.com/dKab/todo/tree/karma
The text was updated successfully, but these errors were encountered: