Skip to content

Unhandled asynchronous exception: TypeError: this.suite[option] is not a function #295

@stevenlafl

Description

@stevenlafl
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions