This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
window.mocha not defined when running in nw.js #184
Open
Description
Just like this question I'm trying to run Mocha tests via Karma in NW.js.
However my tests aren't running as window.mocha
isn't defined.
Uncaught TypeError: Cannot read property 'setup' of undefined
at node_modules/karma-mocha/lib/adapter.js:250
Is it possible to do something like window.mocha = window.mocha || require("mocha")
in the Adapter? Any other tips/suggestions.
Metadata
Assignees
Labels
No labels