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

Failed to execute "jasmine.executeSpecsInFolder": TypeError: undefined is not a function #330

Closed
BenSayers opened this issue Jul 3, 2014 · 3 comments

Comments

@BenSayers
Copy link

When running jasmine-node via grunt I get this error:

Failed to execute "jasmine.executeSpecsInFolder": TypeError: undefined is not a function
  at Object.jasmine.executeSpecsInFolder (/Users/bsayers/Development/global-admin-billing/node_modules/grunt-jasmine-node/node_modules/jasmine-node/lib/jasmine-node/index.js:100:28)
  at Object.<anonymous> (/Users/bsayers/Development/global-admin-billing/node_modules/grunt-jasmine-node/tasks/jasmine-node-task.js:96:17)
  at Object.<anonymous> (/Users/bsayers/Development/global-admin-billing/node_modules/grunt/lib/grunt/task.js:264:15)
  at Object.thisTask.fn (/Users/bsayers/Development/global-admin-billing/node_modules/grunt/lib/grunt/task.js:82:16)
  at Object.<anonymous> (/Users/bsayers/Development/global-admin-billing/node_modules/grunt/lib/util/task.js:301:30)
  at Task.runTaskFn (/Users/bsayers/Development/global-admin-billing/node_modules/grunt/lib/util/task.js:251:24)
  at Task.<anonymous> (/Users/bsayers/Development/global-admin-billing/node_modules/grunt/lib/util/task.js:300:12)
  at /Users/bsayers/Development/global-admin-billing/node_modules/grunt/lib/util/task.js:227:11
  at process._tickCallback (node.js:415:13)

Comparing broken builds to working builds it appears a dependency has not been locked down enough in the package json and moved to a version containing a breaking change.

Working builds were using jasmine-reporters@0.4.1, broken builds are now pulling in jasmine-reporters@2.0.0.

We are outputting the test results in junit format.

@Maxim-Filimonov
Copy link

Confirming the same problem with jasmine-reporters@2.0.0(released 2 days ago 🐕 ).
Downgrade to jasmine-reporters@1.0.0 fixes the problem. See PR

@edi9999
Copy link

edi9999 commented Jul 8, 2014

The #333 pull request has a better solution for this, using ~1.0.0 We should close this.

@tebriel
Copy link
Contributor

tebriel commented Jul 16, 2014

Fixed

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

4 participants