Closed AlexCannonball closed 11 months ago
Hello,
My tests are working fine in Mocha serial mode on Windows. However, if I try parallel mode in test/suite/index.ts like this:
test/suite/index.ts
export async function run(): Promise<void> { const mocha = new Mocha({ parallel: true, jobs: 2, ui: 'bdd', checkLeaks: true, color: true, inlineDiffs: true, reporter: 'min' }); ...
I'm getting an error:
Uncaught Error: Cannot find module 'vscode'
What am I doing wrong?
Mocha runs parallel-mode tests in separate worker processes. These cannot access the VS Code API, and doing so is unfortunately not possible.
Hello,
My tests are working fine in Mocha serial mode on Windows. However, if I try parallel mode in
test/suite/index.ts
like this:I'm getting an error:
What am I doing wrong?