I am writing a chrome packaged app, using angular JS.
My setup uses grunt/karma/jasmine for building/unit testing, and everything was fine until I started using the chrome.* API. This of course was an issue as I had Travis-CI set up to use PhantomJS, but Phantom doesn't know about the chrome
global var.
- Is there a way to run unit tests with karma that will not throw
ReferenceError: Can't find variable: chrome
for testing packaged apps, and so pass Travis-CI testing - Is there a way to suppress the errors that PhantomJS is throwing (this sounds bad already)