Skip to content

Commit e3675c7

Browse files
committed
docs(devs-infra): update resolver information in breaking change section
1 parent f087e0e commit e3675c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919

2020
* **NodeJs** range version support now is `^12.20.0 || ^14.15.0 || >=16.10.0`
2121
* Due to the introduction of **ESM package format** for Angular packages, several things are added to the **default preset** to handle `.mjs` files from **Angular ESM packages**:
22-
+ `ng-jest-resolver` is introduced as a custom Jest resolver to resolve `.mjs` files.
22+
+ `ng-jest-resolver` is introduced as a custom Jest resolver to resolve `.mjs` files. This custom Jest resolver will affect
23+
how Jest loads a module. One might have issues with `paths` of TypeScript. Users are encouraged to extend the default
24+
[resolver](https://github.com/thymikee/jest-preset-angular/blob/main/src/resolvers/ng-jest-resolver.ts) from the preset to suit their own needs.
2325
+ `transformIgnorePatterns` is added to inform Jest to transform `.mjs` files.
2426
+ `transform` is updated to include `.mjs` extension to transform to `CommonJS` codes.
2527

0 commit comments

Comments
 (0)