I am using Jasmine to unit test some legacy code that will run in the browser. Here is how I execute my tests: ts-node node_modules/jasmine/bin/jasmine
Because this is legacy code, it's using globals (ie: window
). How do I execute Jasmine and tell it that it should assume the code is in browser mode as opposed to node mode. That is, recognize window
as a global variable and global
as not?