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

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

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