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

Attempting to run tests: Cannot call method 'join' of undefined #57

Closed
SiAdcock opened this issue Feb 3, 2014 · 2 comments
Closed

Attempting to run tests: Cannot call method 'join' of undefined #57

SiAdcock opened this issue Feb 3, 2014 · 2 comments

Comments

@SiAdcock
Copy link

SiAdcock commented Feb 3, 2014

Hi

After just upgrading to 0.1.8, I'm getting the following error when attempting to run tests

Running "jasmine:build" (jasmine) task
Warning: Cannot call method 'join' of undefined Use --force to continue.

I get the same error when I define my requireConfig inline, and even if I remove everything from requireConfig

    jasmine: {
        build: {
            options: {
                specs: 'test/specs/**/*.spec.js',
                template: require('grunt-template-jasmine-requirejs'),
                templateOptions: {
                    requireConfigFile: 'src/scripts/config.js',
                    requireConfig: {
                        baseUrl: 'src/scripts'
                    }
                }
            }
        }
    },

Is this a bug, or is there perhaps something wrong with my configuration?

Let me know if you need any further info

@cloudchen
Copy link
Owner

It's caused by conflict with host package, below is the workaround.

Conflict with grunt-contrib-jasime 0.6.x

The host package of this template has been upgrade to 0.6.x, which enables Jasmine 2.0 support.

Unfortunately, there's major conflict which can't be solved by code changes.

You cannot use this template in conjunction with 0.6.x of grunt-contrib-jasmine until the host package fixes that conflict.

We released v0.1.9 patch version with strict peerDependencies of host package to notify version conflict.

If you meet that error message, please downgrade your grunt-contrib-jasmine to ~0.5.2 by running below command:

npm install grunt-contrib-jasmine@0.5.2 --save-dev

@SiAdcock
Copy link
Author

SiAdcock commented Feb 4, 2014

Ok, thanks for the clarification. I've downgraded the host package and it's working again. I'll close this issue, as grunt-contrib-jasmine is causing the conflict

@SiAdcock SiAdcock closed this as completed Feb 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants