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
* Drop support for Angular < **8.0**, see https://angular.io/guide/releases#support-policy-and-schedule.
39
+
* Drop support for Angular < **8.0**, see https://angular.io/guide/releases#support-policy-and-schedule.
31
40
* Drop support for Node.js version **10** since it becomes EOL on **2021-04-30**. Required Node version now is **>=12.13.0**.
32
41
* Require **Jest 27**.
33
-
* When generating a new project from Angular CLI, by default the `tsconfig.json` doesn't contain any path mappings
34
-
hence removing `moduleNameMapper` from preset will make sure that the preset works in pair with `tsconfig.json`.
35
-
Ones who are relying on the value of `moduleNameMapper` from the preset should create their own `moduleNameMapper`
36
-
config manually or via `ts-jest` util https://kulshekhar.github.io/ts-jest/docs/getting-started/paths-mapping
37
-
* By default, if `skipLibCheck` is not defined in tsconfig, `jest-preset-angular` will set it to `true`. If one wants to have it as `false`, one can set explicitly in tsconfig.
42
+
* Users who are using `import 'jest-preset-angular'` should change to `import 'jest-preset-angular/setup-jest'`
43
+
***transformers:** The AST transformers `InlineFilesTransformer` and `StripStylesTransformer` are **REMOVED** and
44
+
default `jest-preset-angular` uses AST transformers from `@angular/compiler-cli` and `@ngtools/webpack`.
45
+
One should remove the old transformers from the jest config.
38
46
***compiler:**`jest-preset-angular` now switches to default to use its own transformer which wraps around `ts-jest` to transform codes.
39
47
40
48
Users who are currently doing in jest config
@@ -58,41 +66,36 @@ module.exports = {
58
66
},
59
67
}
60
68
```
61
-
* Users who are using `import 'jest-preset-angular'` should change to `import 'jest-preset-angular/setup-jest'`
62
-
***transformers:** The AST transformers `InlineFilesTransformer` and `StripStylesTransformer` are **REMOVED** and
63
-
default `jest-preset-angular` uses AST transformers from `@angular/compiler-cli` and `@ngtools/webpack`.
64
-
One should remove the old transformers from the jest config.
65
-
***serializers:** One is using all `jest-preset-angular` snapshot serializers should change jest config to have:
69
+
***serializers:**: snapshot serializer paths have been changed:
70
+
-`'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js'` is changed to `'jest-preset-angular/build/serializers/no-ng-attributes`.
71
+
-`'jest-preset-angular/build/AngularSnapshotSerializer.js'` is changed to `'jest-preset-angular/build/serializers/ng-snapshot`.
72
+
-`'jest-preset-angular/build/HTMLCommentSerializer.js'` is changed to `'jest-preset-angular/build/serializers/html-comment`.
73
+
* When generating a new project from Angular CLI, by default the `tsconfig.json` doesn't contain any path mappings
74
+
hence removing `moduleNameMapper` from preset will make sure that the preset works in pair with `tsconfig.json`.
75
+
Ones who are relying on the value of `moduleNameMapper` from the preset should create their own `moduleNameMapper`
76
+
config manually or via `ts-jest` util https://kulshekhar.github.io/ts-jest/docs/getting-started/paths-mapping
77
+
* By default, if `skipLibCheck` is not defined in tsconfig, `jest-preset-angular` will set it to `true`. If one wants to have it as `false`, one can set explicitly in tsconfig.
78
+
***compiler:**`jest-preset-angular` now switches to default to use its own transformer which wraps around `ts-jest` to transform codes.
0 commit comments