Questions tagged [karma-webpack]

npm package to connect karma with webpack

npm package to connect karma with webpack https://github.com/webpack/karma-webpack

171 questions
0
votes
1 answer

How do I add code coverage to Typescript + Webpack + Karma w/ Istanbul-Instrumenter

I have created a simple Webpack + Typescript + Karma app but I am having trouble getting the code coverage to work properly. Per projects like this and the other info provided here you can see I tried... // In test bundle const componentsContext =…
Jackie
  • 21,969
  • 32
  • 147
  • 289
0
votes
2 answers

Mocha tests with Karma, Webpack

I have a React project and use Webpack 1.13.1 to bundle my code. I want to write some tests in 3.0.2 and run these tests in a browser using Karma 1.2.0. I tried to use karma-webpack plugin, but if I run tests I get following errors in…
Matt
  • 8,195
  • 31
  • 115
  • 225
0
votes
1 answer

Teamcity job reports duplicated karma-jasmine-webpack tests count

Running karma with webpack and jasmine i am getting team city to report 300 tests instead of 150. These are jasmine tests for angular client side. Any idea why?
radix
  • 795
  • 1
  • 5
  • 16
-1
votes
1 answer

Karm Webpack Warning for "mocked" image URL

I am testing an Angular app and, for specs, I'm supplying a non-existent URL for an image (e.g. /foo1.jpg). The tests run okay, however, webpack throws a warning: 15 04 2022 06:28:22.123:WARN [web-server]: 404: /_karma_webpack_/foo1.jpg Is there a…
-1
votes
1 answer

Why I am getting cyclic dependency issue when I upgrade to Angular 9

I have this file and its code is like import { Injectable } from '@angular/core'; import { I18n } from '@ngx-translate/i18n-polyfill'; import { isNumber } from 'lodash'; import { ConfirmationService, MessageService } from 'primeng/api'; export enum…
1 2 3
11
12