mocha-parallel-tests
mocha-parallel-tests copied to clipboard
Unhandled asynchronous exception: TypeError: this.suite[option] is not a function
Unhandled asynchronous exception: TypeError: this.suite[option] is not a function
at MochaWrapper.getThreadOptions (/node_modules/mocha-parallel-tests/dist/main/mocha.js:148:49)
at MochaWrapper.runThread (/node_modules/mocha-parallel-tests/dist/main/mocha.js:115:30)
at task (/node_modules/mocha-parallel-tests/dist/main/mocha.js:56:37)
at TaskManager.startTaskProcessing (/node_modules/mocha-parallel-tests/dist/main/task-manager.js:46:27)
at TaskManager.execute (/node_modules/mocha-parallel-tests/dist/main/task-manager.js:35:18)
at MochaWrapper.run (/node_modules/mocha-parallel-tests/dist/main/mocha.js:66:21)
at Object.<anonymous> (/node_modules/mocha-parallel-tests/dist/bin/cli.js:189:7)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
Test code:
describe('test', () => {
it('tests', async () => {
});
});
I have tried many different tests I could run under mocha, but this is the simplest that fails.
Starting with mocha-parallel-tests -R xunit --timeout 10000 --slow 1000 tests/*.test.js
I started to see this after upgrading Mocha to v8.x.
@mastermatt out of interest, mocha@8 supports parallel mode, does it work for you?
Using the parallel mode out of the box in mocha 8 isn't straight forward in my case. I'm moving in that direction, but I was hoping to continue using mocha-parallel-tests
in the mean time.
Any updated on this issue @1999 ?