-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cannot run ui: 'exports'
tests using API.
#3004
Comments
Hmm. Given that those assignments seem to depend on the BDD or TDD interface being chosen, I think we could put that whole callback in an |
@ScottFreeCode: I see you've self-assigned this issue, and I was wondering if you had an update? We're experiencing this issue as well (vega/vega-lite#4166) when using |
@arvind, To my knowledge, no one is working on this issue! BTW, since I have never used either of these UIs, what is their equivalent of a skipped test? |
Unverified but...
|
The
|
@boneskull please close, since solved in b5c0fb0 |
@outsideris could you please close this issue? Thanks. |
I confirmed it fixed as @juergba said. |
Prerequisites
common mistake
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend avoiding the use of globally installed Mocha.Description
Cannot run
ui: 'exports'
tests using API. The call tomocha.run()
throws an exception "TypeError: Cannot read property 'skip' of undefined".Steps to Reproduce
Create a file
MyTestFile.js
with contents:Then run
node -e "const Mocha = require('mocha'); const mocha = new Mocha({ ui: 'exports' }); mocha.addFile('./MyTestFile.js'); mocha.run();"
Expected behavior:
Test should pass.
Actual behavior:
Throws exception:
Reproduces how often:
100% of the time.
Versions
Problem does not happen in v3.5.0, starts happening in v3.5.1. The line that is throwing the exception was added in that release by 1cc0fc0.
Additional Information
The text was updated successfully, but these errors were encountered: