When you're using a testing framework, do you prefer your test declarations to be global variables like Mocha or Jest? Or to have explicit imports like Ava? import test from 'ava'; test('title', () => {}); vs. // global.test test('title', () => {});
You wont have a consistent environment. Globals will be available in one environment (the one your tests run in), and your production one (where your normal code runs). It's not really an issue with globals because you can't really accidentaly refer to them.
-
-
Jest also adds an `expect` global (and maybe others?).
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 