jest-preset-angular 14.3.2 → 14.4.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -4
- package/README.md +1 -1
- package/build/transformers/jit_transform.js +47 -38
- package/package.json +23 -23
- package/setup-env/{utils.mjs → utils.js} +8 -3
- package/setup-env/zone/index.js +2 -20
- package/setup-env/zone/index.mjs +7 -3
- package/setup-env/zoneless/index.js +44 -4
- package/setup-env/zoneless/index.mjs +28 -19
- package/setup-jest.js +5 -1
- package/setup-jest.mjs +1 -1
- package/setup-e2e-test.ts +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## [14.4.0-rc.0](https://github.com/thymikee/jest-preset-angular/compare/v14.3.3...v14.4.0-rc.0) (2024-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* feat: add support for Angular 19 (#2835) ([4a73245](https://github.com/thymikee/jest-preset-angular/commit/4a73245)), closes [#2835](https://github.com/thymikee/jest-preset-angular/issues/2835)
|
|
7
|
+
* feat: support configuring zoneless test env for CJS ([fe2fbe9](https://github.com/thymikee/jest-preset-angular/commit/fe2fbe9))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## [14.3.3](https://github.com/thymikee/jest-preset-angular/compare/v14.3.2...v14.3.3) (2024-11-22)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* feat: support configuring zoneless test env for CJS ([7a270b1](https://github.com/thymikee/jest-preset-angular/commit/7a270b1))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
1
20
|
## [14.3.2](https://github.com/thymikee/jest-preset-angular/compare/v14.3.1...v14.3.2) (2024-11-20)
|
|
2
21
|
|
|
3
22
|
|
|
@@ -21,7 +40,7 @@
|
|
|
21
40
|
|
|
22
41
|
### Features
|
|
23
42
|
|
|
24
|
-
* feat: add new setup test env functions ([21c0238](https://github.com/thymikee/jest-preset-angular/commit/21c0238)), closes [#354](https://github.com/thymikee/jest-preset-angular/issues/354) [#2755](https://github.com/thymikee/jest-preset-angular/issues/2755)
|
|
43
|
+
* feat: add new setup test env functions `setupZoneTestEnv` and `setupZonelessTestEnv` ([21c0238](https://github.com/thymikee/jest-preset-angular/commit/21c0238)), closes [#354](https://github.com/thymikee/jest-preset-angular/issues/354) [#2755](https://github.com/thymikee/jest-preset-angular/issues/2755)
|
|
25
44
|
* feat: build package with type definitions ([a269daa](https://github.com/thymikee/jest-preset-angular/commit/a269daa))
|
|
26
45
|
* feat: deprecate `setup-jest.js` and `setup-jest.mjs` ([a304036](https://github.com/thymikee/jest-preset-angular/commit/a304036))
|
|
27
46
|
|
|
@@ -35,10 +54,10 @@
|
|
|
35
54
|
|
|
36
55
|
Importing `setup-jest.js`/`setup-jest.mjs` directly is deprecated. The files will be removed in the future.
|
|
37
56
|
|
|
38
|
-
Please use
|
|
57
|
+
Please use `setupZoneTestEnv` function instead. Example:
|
|
39
58
|
|
|
40
59
|
For CJS
|
|
41
|
-
```
|
|
60
|
+
```ts
|
|
42
61
|
// setup-jest.ts
|
|
43
62
|
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
|
|
44
63
|
|
|
@@ -46,7 +65,7 @@ setupZoneTestEnv();
|
|
|
46
65
|
```
|
|
47
66
|
|
|
48
67
|
For ESM
|
|
49
|
-
```
|
|
68
|
+
```ts
|
|
50
69
|
// setup-jest.ts
|
|
51
70
|
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone/index.mjs';
|
|
52
71
|
|
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ with `yarn workspace` or monorepo structure.
|
|
|
51
51
|
## Built With
|
|
52
52
|
|
|
53
53
|
- [TypeScript](https://www.typescriptlang.org/) - JavaScript that scales
|
|
54
|
-
- [Angular](https://angular.
|
|
54
|
+
- [Angular](https://angular.dev/) - Deliver web apps with confidence 🚀
|
|
55
55
|
- [`ts-jest`](https://kulshekhar.github.io/ts-jest) - Jest transformer for TypeScript
|
|
56
56
|
|
|
57
57
|
## Authors/maintainers
|