You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be a topic for the Wiki, but I've been figuring out how to run Mocha tests on my Electron code in the Test Explorer in VS Code. I've got it working just fine in the Debugger (maybe another topic for the Wiki). But I can't seem to configure my tests to load in the Test Explorer.
I'm using Mocha Explorer, but I can't figure out how to tell it to use electron-mocha instead of (plain old) mocha. Of course, with plain old mocha I get errors that app and ipcMain are undefined, but when I set
TypeError: Cannot read properties of undefined (reading 'bdd')
at patchMocha (/Users/jeff/.vscode/extensions/hbenl.vscode-mocha-test-adapter-2.14.1/out/worker/bundle.js:870:64)
at /Users/jeff/.vscode/extensions/hbenl.vscode-mocha-test-adapter-2.14.1/out/worker/bundle.js:5775:17
at Generator.next (<anonymous>)
at fulfilled (/Users/jeff/.vscode/extensions/hbenl.vscode-mocha-test-adapter-2.14.1/out/worker/bundle.js:114:58)
But without it, I get errors about app being undefined.
Any thoughts?
The text was updated successfully, but these errors were encountered:
This may be a topic for the Wiki, but I've been figuring out how to run Mocha tests on my Electron code in the Test Explorer in VS Code. I've got it working just fine in the Debugger (maybe another topic for the Wiki). But I can't seem to configure my tests to load in the Test Explorer.
I'm using Mocha Explorer, but I can't figure out how to tell it to use
electron-mocha
instead of (plain old)mocha
. Of course, with plain oldmocha
I get errors thatapp
andipcMain
areundefined
, but when I setin settings.json, I get an error saying
But without it, I get errors about
app
being undefined.Any thoughts?
The text was updated successfully, but these errors were encountered: