You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,9 @@
19
19
20
20
***NodeJs** range version support now is `^12.20.0 || ^14.15.0 || >=16.10.0`
21
21
* 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.
23
25
+`transformIgnorePatterns` is added to inform Jest to transform `.mjs` files.
24
26
+`transform` is updated to include `.mjs` extension to transform to `CommonJS` codes.
0 commit comments