Ion Jasmine: env.stopOnSpecFailure is not a function after successful compilation

Using Ionic with jasmine karma, while checking execution, obtaining compilation success, but in the jasmine panel, there is a blank screen with an error in the console.

Next guide: https://leifwells.imtqy.com/2017/08/27/testing-in-ionic-configure-existing-projects-for-testing/

"ts-loader": "^4.1.0",
"jasmine-core": "^2.99.1"

Error messages:

TypeError: env.stopOnSpecFailure is not a function at adapter.js:26

Error: Module build failed: TypeError: Cannot read property 'afterCompile' of undefined
+4
source share
1 answer

-, stopOnSpecFailure. -, 3 . 3.1.0 . , Webpack 3, ts-loader 3.5.0.

UPDATE:

, 2.99.1. -, . , karma-jasmine-html-reporter 0.2.2 - 2.99.1.

+5

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


All Articles