Skip to content
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

client.args doesn't pass to mocha #177

Open
dKab opened this issue Jan 18, 2016 · 0 comments
Open

client.args doesn't pass to mocha #177

dKab opened this issue Jan 18, 2016 · 0 comments

Comments

@dKab
Copy link

dKab commented Jan 18, 2016

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:

...
karma: {
        watch: {
            configFile: 'karma.conf.js'
        },
        CI: {
            configFile: 'karma.conf.js',
            singleRun: true
        }
    }
...
grunt.loadNpmTasks('grunt-karma');
...
grunt.registerTask('dev', [
    'karma:watch'
]);
...

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?

You can see my setup here: https://github.com/dKab/todo/tree/karma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants