Questions tagged [karma-systemjs]

6 questions
1
vote
0 answers

Karma not running simple typescript test (using SystemJS + Jasmine)

I have been struggling with running a very simple typescript unit test that returns "hello" using Karma, Jasmine, SystemJs. Grabbed the project from Aurelia Typescript ASP.NET Core skeleton here but since then I've got no luck in running the unit…
1
vote
0 answers

How do I run karma / jasmine tests for an Angular 1.5.8 project that uses javascript, coffeescript, and typescript source?

I am working on a production system that currently uses CoffeeScript and JavaScript. We are looking to progressively migrate the source code to TypeScript in anticipation of an eventual migration to Angular 2. I am using karma with the below…
jkndrkn
  • 4,012
  • 4
  • 36
  • 41
0
votes
0 answers

Adding Karma, Jasmine specs to working anuglar app

We have an angular app under development. Business code is working and is almost stable. In the app, we have placed JSPs and ts (and generated *.js, *.js.map) files into different folders. Please find project folder structure below: /angular …
0
votes
1 answer

404 fetch error for Karma/Jasmine test suite

I'm writing tests using Karma and Jasmine for an Angular 4 application. I am consistently getting errors which look like this: Error: Fetch error: 404 Not Found at…
Tom Oakley
  • 6,065
  • 11
  • 44
  • 73
0
votes
1 answer

Using SystemJS with Karma - 404 on package.json

Problem: Attempting to integrate SystemJS config with Karma using karma-systemjs, however Karma is complaining about not being able to find the package.json file for each import: ... 10 07 2017 13:38:15.107:WARN [web-server]: 404:…
patryk0605
  • 1,081
  • 1
  • 9
  • 10
0
votes
0 answers

Configure Unit Testing using Karma and Jasmine and code coverage using istanbul for an angular 2 app

Please find the link to the bitbucket repo below https://bitbucket.org/abhinav-cleo/harmonyangular2project its a public repo. the app is written using angular 2 and typescript. all the components are inside the app folder which are to be unit tested…