Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

TypeError: 'null' is not an object (evaluating 'currentSpec.expect') #30

Closed
danielbsig opened this issue May 9, 2014 · 4 comments
Closed

Comments

@danielbsig
Copy link

The following error occurs occasionally (not always) when we run our tests using gulp-karma. However, if the tests are executed using karma alone, this does not occur.

Seems to be a problem on Windows only.

Any ideas what might be the problem?

@lazd
Copy link
Owner

lazd commented May 9, 2014

currentSpec.expect is part of of Jasmine, so this could be a problem with your Karma plugin configuration or Jasmine itself... It is odd that the behavior is only observed when running with gulp-karma, but I can't think of a reason why that could ever happen due to what gulp-karma does.

@nordfjord
Copy link

it might have something to do with the gulp.src we're passing. Is it possible to use the file array defined in karma.conf.js?

@lazd
Copy link
Owner

lazd commented May 9, 2014

The plugin is in flux right now and will definitely not be using gulp.src() to specify files in the future. See karma-runner/karma#1037, where @pkozlowski-opensource and I discuss that this plugin really shouldn't exist, we just need a few features in Karma to make it usable directly from gulp.

@danielbsig
Copy link
Author

The problem is probably in some other component (karma-jasmine or jasmine itself), so I will close this issue.

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

No branches or pull requests

3 participants