vistaprint / grunt-js-test

Grunt plugin to run client-side, mocha unit tests and generate code coverage reports
10 stars 11 forks source link

Fatal error: Cannot read property 'timeout' of undefined #28

Closed matepek closed 6 years ago

matepek commented 6 years ago

Running grunt, I'm getting this:

Fatal error: Cannot read property 'timeout' of undefined TypeError: Cannot read property 'timeout' of undefined at /node_modules/grunt-js-test/tasks/js-test.js:225:34 at /node_modules/async/lib/async.js:181:20 at iterate (/node_modules/async/lib/async.js:262:13) at Object.async.forEachOfSeries.async.eachOfSeries (/node_modules/async/lib/async.js:281:9) at Object.async.forEachSeries.async.eachSeries (/node_modules/async/lib/async.js:214:22) atnode_modules/grunt-js-test/tasks/js-test.js:219:24 at Server.args (/node_modules/grunt-js-test/tasks/js-test.js:28:11) at Object.onceWrapper (events.js:272:13) at Server.emit (events.js:180:13) at emitListeningNT (net.js:1369:10) at process._tickCallback (internal/process/next_tick.js:114:19)

The problem is pretty straightforward, but the fix isn't for me.

(I'm really newbie in the JS world.)

[I] ➜ node --version
v9.8.0 [I] ➜ grunt --version grunt-cli v1.2.0 grunt v1.0.2

labaneilers commented 6 years ago

Hey matepek,

I'm sorry, this was just a stupid bug. I'm trying to keep this package functional, but not investing a lot in it, given the decline of grunt.

I've got a fix published to npm at version 2.0.2.

thanks, Laban