karma-qunit

Testing Emberjs app using QUnit and Karma fails due to `ReferenceError: Faye is not defined`

旧时模样 提交于 2020-01-05 07:46:38
问题 I Was testing EmberJs application with Qunit and karma runner and it was working all good. Then I had to integrate faye into the application which went well but then on running my test suite, it shows following error and crashes: ReferenceError: Faye is not defined The error is thrown where, I am defining the client in emberjs client = new Faye.Client(uri); Though this works in development, staging but not in testing. Overhere, uri = "http://localhost:9292/faye" faye.js is included in vendor