Skip to content

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

Open
@art-alexeyenko

Description

@art-alexeyenko

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions