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
I just guess you made a great lib of qunit. But cannot find any information about how to referring/requiring/my code to be tested and I also need to use sinon to mock something how can I include sinonjs in my testing?
I mean I know the testrunner has some thing like:
{
code: "path/to/mycode",
}
but how can I get access to my vars, objects and dear sinon.
The text was updated successfully, but these errors were encountered:
exports are merged with global when namespace is not defined. So by default you can access CLI.bla from global.bla or just bla. If you add namespace (see documentation) you will get CLI attached to global using this namespace, f.e. namespace: 'CLI' .... global.CLI === CLI
Its designed to work similar to the browser.
Please submit a pull request for the documentation if I could help you.
I just guess you made a great lib of qunit. But cannot find any information about how to referring/requiring/my code to be tested and I also need to use sinon to mock something how can I include sinonjs in my testing?
I mean I know the testrunner has some thing like:
but how can I get access to my vars, objects and dear sinon.
The text was updated successfully, but these errors were encountered: