I have qunits written using QUnit.js, now I am trying to integrate Qunit.js with mocha so that I can execute both unittests with single mocha command.
I have installed qunit and mocha using npm.
➜ npm ls
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
And when I tried to run the mocha command
> mocha --require qunit --package ./package.json ./*.js
ReferenceError: QUnit is not defined
I am using ES5 JS Syntax, so I can't add lines like require in my .js files. Is there any way we can achieve this?