Skip to content

[Feature]: Support AOT compilation #2582

Open
@waterplea

Description

@waterplea

🚀 Feature Proposal

It looks like currently JIT compiler is hardcoded:
https://github.com/thymikee/jest-preset-angular/blob/main/src/compiler/ng-jest-compiler.ts#L63

I would be nice if we could use Jest with Angular AOT.

Motivation

JIT is barely ever used for years and is a very obscure mode that can cause issues that do not occur in real apps. AOT has been the default for nearly 10 major versions. Using AOT in Jest would improve testing environment by bringing it closer to the real life.

Example

No response

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