Skip to content

Commit 9e40ba3

Browse files
committed
docs(devs-infra): update README and CHANGELOG to be clearer
1 parent 5da3655 commit 9e40ba3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@
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+
2223
+ `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.
24+
25+
how Jest loads modules. If this resolver doesn't fit the needs, users are encouraged to extend [this
26+
resolver](https://github.com/thymikee/jest-preset-angular/blob/main/src/resolvers/ng-jest-resolver.ts) from the preset to suit own needs.
27+
2528
+ `transformIgnorePatterns` is added to inform Jest to transform `.mjs` files.
29+
2630
+ `transform` is updated to include `.mjs` extension to transform to `CommonJS` codes.
2731

2832
If one has custom Jest config, please make sure to adjust Jest config for CJS mode as following:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
<a href="https://github.com/thymikee/jest-preset-angular/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/jest-preset-angular.svg?style=flat-square" alt="GitHub license" /></a>
99
</p>
1010

11-
This is a part of the article: [Testing Angular faster with Jest](https://www.xfive.co/blog/testing-angular-faster-jest/).
11+
> Our online documentation is available at https://thymikee.github.io/jest-preset-angular/
12+
13+
> This is a part of the article: [Testing Angular faster with Jest](https://www.xfive.co/blog/testing-angular-faster-jest/).
1214
1315
## Getting Started
1416

0 commit comments

Comments
 (0)