TypeError: test.fullTitle is not a function
See original GitHub issuehi there,
mochasome looks really cool. i just tried to run it for the first time but straight run in an error 😦
Environment Information
npm: 3.10.7 node: v6.5.0 mocha: 3.0.2 mochasome: 1.5.2
Problem with mochawesome: TypeError: test.fullTitle is not a function
at cleanTest (fullstack/npm/modules/array-numbers/node_modules/mochawesome/lib/mochawesome.js:256:21)
at arrayMap (fullstack/npm/modules/array-numbers/node_modules/mochawesome/node_modules/lodash/index.js:1406:25)
at Function.map (fullstack/npm/modules/array-numbers/node_modules/mochawesome/node_modules/lodash/index.js:6710:14)
at cleanSuite (fullstack/npm/modules/array-numbers/node_modules/mochawesome/lib/mochawesome.js:166:22)
at traverseSuites (fullstack/npm/modules/array-numbers/node_modules/mochawesome/lib/mochawesome.js:143:7)
at Runner.<anonymous> (fullstack/npm/modules/array-numbers/node_modules/mochawesome/lib/mochawesome.js:78:9)
at emitNone (events.js:91:20)
at Runner.emit (events.js:185:7)
at /Users/fullstackx/.nvm/versions/node/v6.5.0/lib/node_modules/mocha/lib/runner.js:798:12
at /Users/fullstackx/.nvm/versions/node/v6.5.0/lib/node_modules/mocha/lib/runner.js:646:9
at next (/Users/fullstackx/.nvm/versions/node/v6.5.0/lib/node_modules/mocha/lib/runner.js:285:14)
at Immediate.<anonymous> (/Users/fullstackx/.nvm/versions/node/v6.5.0/lib/node_modules/mocha/lib/runner.js:327:5)
at runCallback (timers.js:574:20)
at tryOnImmediate (timers.js:554:5)
at processImmediate [as _immediateCallback] (timers.js:533:5)
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Mocha: Get current test's name of test generate on loop?
How I can improve my code for used this.test.fullTitle() directly on loop and avoid I used the variable testTitle and beforeEach function? node ......
Read more >suite.js - Documentation - Mocha
function Suite(title, parentContext, isRoot) {; if (!isString(title)) ... test);; return this;; };; /**; * Return the full title generated by recursively ...
Read more >mocha/mocha.js - chromium/src/third_party - Git at Google
throw new TypeError('"listener" argument must be a function');. events = target. ... Invalid ranges are not set to a default, so can range...
Read more >mochajs/mocha - Gitter
I wonder if anyone can suggest a recipe for a set of tests against a piece of express.js middleware, ... I get a...
Read more >api documentation for mocha (v3.3.0)
fullTitle (), test.duration); }); runner.on('fail', function (test) { cursor. ... createWriteStream) { throw new Error('file output not supported in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having the exact same issue but it has nothing to do with the describe. It happens when mocha.run() is called more than once.
Here’s my code:
And my test code:
When the add or watch event is called more than once, it fails.
I have the same issue as @CodingMadeEasy suggested