monounity / karma-typescript

Simplifying running unit tests with coverage for Typescript projects.
313 stars 110 forks source link

Is karma-typescript compatible with Angular 13+ ? #589

Open art-alexeyenko opened 1 year ago

art-alexeyenko commented 1 year ago

Angular 13 and up only compiles into ES modules, and it looks like karma-typescript uses CJS. When trying to run unit tests on v13 angular library I get a variety of issues, one of which is

TypeError: core_1.InjectionToken is not a constructor

when processing an import from angular/core

import { InjectionToken, Type } from '@angular/core';

The latest version release has been before v13 release - if karma-typescript has no support for it, are there any plans for it?