Skip to content
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

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

Open
stevenlafl opened this issue Jun 25, 2020 · 4 comments

Comments

@stevenlafl
Copy link

stevenlafl commented Jun 25, 2020

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

@mastermatt
Copy link

I started to see this after upgrading Mocha to v8.x.

@1999
Copy link
Collaborator

1999 commented Jul 10, 2020

@mastermatt out of interest, mocha@8 supports parallel mode, does it work for you?

@mastermatt
Copy link

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.

@Pritam-RoyChowdhury
Copy link

Pritam-RoyChowdhury commented Apr 13, 2021

Any updated on this issue @1999 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants