Ionic Jasmine : env.stopOnSpecFailure is not a function after compiled successfully : <p>Using Ionic with jasmine-karma, while run test, getting success compile but in jasmine dashboard getting empty screen with error in console.</p>

<p>Following tutorial : <a href="https://leifwells.github.io/2017/08/27/testing-in-ionic-configure-existing-projects-for-testing/" rel="noreferrer">https://leifwells.github.io/2017/08/27/testing-in-ionic-configure-existing-projects-for-testing/</a></p>

<pre><code>"ts-loader": "^4.1.0",
"jasmine-core": "^2.99.1"
</code></pre>

<p>Error Messages :</p>

<pre><code>TypeError: env.stopOnSpecFailure is not a function at adapter.js:26

Error: Module build failed: TypeError: Cannot read property 'afterCompile' of undefined
</code></pre>
