Files
zulip/frontend_tests/.eslintrc.json
Steve Howell 2f775c3e0b node tests: Extract zrequire helper.
We are phasing out the following in tests:

    add_dependencies - this is just kind of a clunky UI
    require - normal JS requires cause test leaks

In order to plug require leaks, we are effectively doing what
we always have done inside of add_dependencies, which is to
keep track of which modules we have done `require` on, and
these get cleared between tests.

Now we just use `zrequire` every time we want to pull in real
code to our global namespace.
2017-08-09 12:32:09 -07:00

18 lines
255 B
JSON

{
"env": {
"shared-node-browser": true
},
"globals": {
"assert": false,
"add_dependencies": false,
"casper": false,
"document": false,
"set_global": false,
"window": false,
"zrequire": false
},
"rules": {
"no-sync": 0
}
}