Is it possible to test Angular without karma?

I'm new to angular & we already have a working rails-stack with jasmine-rails.gem - the tests that come with the sample application do not work, because

beforeEach(module('myApp')); 

fails with Can't find variable: module - and I had no idea where module and inject should be defined: does anyone have an idea how to configure angular -tests to run standalone / out of karma

+4
source share
1 answer

They come with angular-mocks.js , include this.

Get it http://code.angularjs.org/

+2
source

Source: https://habr.com/ru/post/1485632/


All Articles