jest-preset-angular 13.0.0 → 13.0.1

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 CHANGED
@@ -1,3 +1,12 @@
1
+ ## [13.0.1](https://github.com/thymikee/jest-preset-angular/compare/v13.0.0...v13.0.1) (2023-03-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **serializer:** replace `ɵivyEnabled` with workaround to detect Ivy mode ([#2016](https://github.com/thymikee/jest-preset-angular/issues/2016)) ([44d3922](https://github.com/thymikee/jest-preset-angular/commit/44d3922632b4f513d43d5b92a176554ecafb1de1)), closes [#2003](https://github.com/thymikee/jest-preset-angular/issues/2003)
7
+
8
+
9
+
1
10
  # [13.0.0](https://github.com/thymikee/jest-preset-angular/compare/v13.0.0-next.1...v13.0.0) (2023-02-18)
2
11
 
3
12
 
@@ -19,6 +28,7 @@
19
28
  * Drop support for Angular 11, 12
20
29
  * Jest 29 is required
21
30
  * `destroyAfterEach` and `teardown` are no longer available to use, please use `testEnvironmentOptions` instead.
31
+ * `target` is `tsconfig` is now respected according to user configuration, it is no longer hardcoded at `ES2015`. See also note at https://thymikee.github.io/jest-preset-angular/docs/getting-started/installation
22
32
 
23
33
 
24
34
 
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  const attributesToRemovePatterns = ['__ngContext__'];
3
3
  const ivyEnabled = () => {
4
- const { ɵivyEnabled } = require('@angular/core');
5
- return ɵivyEnabled;
4
+ const { NgModule } = require('@angular/core');
5
+ class IvyModule {
6
+ }
7
+ NgModule()(IvyModule);
8
+ return !!IvyModule.ɵmod;
6
9
  };
7
10
  const print = (fixture, print, indent, opts, colors) => {
8
11
  var _a, _b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-preset-angular",
3
- "version": "13.0.0",
3
+ "version": "13.0.1",
4
4
  "description": "Jest preset configuration for Angular projects",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -63,48 +63,48 @@
63
63
  "typescript": ">=4.4"
64
64
  },
65
65
  "devDependencies": {
66
- "@angular-devkit/build-angular": "^15.1.6",
67
- "@angular/animations": "^15.1.5",
68
- "@angular/common": "^15.1.5",
69
- "@angular/compiler": "^15.1.5",
70
- "@angular/compiler-cli": "~15.1.5",
71
- "@angular/core": "^15.1.5",
72
- "@angular/platform-browser": "^15.1.5",
73
- "@angular/platform-browser-dynamic": "^15.1.5",
74
- "@commitlint/cli": "^17.4.3",
75
- "@commitlint/config-angular": "^17.4.3",
76
- "@jest/transform": "^29.4.3",
77
- "@jest/types": "^29.4.3",
78
- "@types/jest": "^29.4.0",
79
- "@types/node": "^18.13.0",
66
+ "@angular-devkit/build-angular": "^15.2.4",
67
+ "@angular/animations": "^15.2.3",
68
+ "@angular/common": "^15.2.3",
69
+ "@angular/compiler": "^15.2.3",
70
+ "@angular/compiler-cli": "~15.2.3",
71
+ "@angular/core": "^15.2.3",
72
+ "@angular/platform-browser": "^15.2.3",
73
+ "@angular/platform-browser-dynamic": "^15.2.3",
74
+ "@commitlint/cli": "^17.4.4",
75
+ "@commitlint/config-angular": "^17.4.4",
76
+ "@jest/transform": "^29.5.0",
77
+ "@jest/types": "^29.5.0",
78
+ "@types/jest": "^29.5.0",
79
+ "@types/node": "^18.14.6",
80
80
  "@types/semver": "^7.3.13",
81
- "@typescript-eslint/eslint-plugin": "^5.51.0",
82
- "@typescript-eslint/parser": "^5.51.0",
81
+ "@typescript-eslint/eslint-plugin": "^5.56.0",
82
+ "@typescript-eslint/parser": "^5.56.0",
83
83
  "chalk": "^4.1.2",
84
84
  "conventional-changelog-cli": "^2.2.2",
85
85
  "cross-env": "^7.0.3",
86
- "eslint": "^8.33.0",
87
- "eslint-config-prettier": "^8.6.0",
86
+ "eslint": "^8.36.0",
87
+ "eslint-config-prettier": "^8.8.0",
88
88
  "eslint-plugin-import": "^2.27.5",
89
89
  "eslint-plugin-jest": "^27.2.1",
90
- "eslint-plugin-jsdoc": "^39.8.0",
90
+ "eslint-plugin-jsdoc": "^40.1.0",
91
91
  "eslint-plugin-prefer-arrow": "^1.2.3",
92
92
  "eslint-plugin-prettier": "^4.2.1",
93
93
  "execa": "5.1.1",
94
- "fs-extra": "^11.1.0",
94
+ "fs-extra": "^11.1.1",
95
95
  "github-files-fetcher": "^1.6.0",
96
- "glob": "^8.1.0",
96
+ "glob": "^9.3.1",
97
97
  "husky": "^8.0.3",
98
- "jest": "^29.4.3",
98
+ "jest": "^29.5.0",
99
99
  "jest-snapshot-serializer-raw": "^1.2.0",
100
100
  "pinst": "^3.0.0",
101
- "prettier": "^2.8.4",
102
- "rimraf": "^4.1.2",
101
+ "prettier": "^2.8.6",
102
+ "rimraf": "^4.3.0",
103
103
  "rxjs": "^7.8.0",
104
104
  "ts-node": "^10.9.1",
105
- "tslib": "^2.4.1",
105
+ "tslib": "^2.5.0",
106
106
  "typescript": "^4.9.5",
107
107
  "zone.js": "^0.12.0"
108
108
  },
109
- "packageManager": "yarn@3.2.3"
109
+ "packageManager": "yarn@3.5.0"
110
110
  }