Skip to content

broken <ATL>/jest-utils module resolution in Jest v28 #299

Closed
@dzonatan

Description

@dzonatan

follow-up on jestjs/jest#12927

TLDR: @testing-library/angular/jest-utils import in Jest v28 is broken and results in this error:
image

Based on Simen's comment it seems like this library uses a bad package format:

@testing-library/angular needs to add an entry for it in exports.

Which is probably true because other packages like @angular/core/testing are following this format. There is even a comment about this in the Angular package format: https://angular.io/guide/angular-package-format#entrypoints-and-code-splitting

Just some comparison images of @angular/core/testing which works, and @testing-library/angular/jest-utils which doesn't.

@angular/core/testing
image

@testing-library/angular/jest-utils
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions