jest-preset-angular 12.2.5 → 12.2.6

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
+ ## [12.2.6](https://github.com/thymikee/jest-preset-angular/compare/v12.2.5...v12.2.6) (2023-01-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **serializers:** remove `__ngContext__` from snapshots ([#1816](https://github.com/thymikee/jest-preset-angular/issues/1816)) ([6997b0b](https://github.com/thymikee/jest-preset-angular/commit/6997b0bc2020e8b7d88d55a107f03c60f8ab8ee1))
7
+
8
+
9
+
1
10
  ## [12.2.5](https://github.com/thymikee/jest-preset-angular/compare/v12.2.4...v12.2.5) (2023-01-18)
2
11
 
3
12
 
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ const attributesToRemovePatterns = ['__ngContext__'];
2
3
  const ivyEnabled = () => {
3
4
  const { ɵivyEnabled } = require('@angular/core');
4
5
  return ɵivyEnabled;
@@ -22,7 +23,7 @@ const print = (fixture, print, indent, opts, colors) => {
22
23
  .map((node) => Array.from(node.renderElement.childNodes).map(print).join(''))
23
24
  .join(opts.edgeSpacing);
24
25
  }
25
- const attributes = Object.keys(componentInstance);
26
+ const attributes = Object.keys(componentInstance).filter((key) => !attributesToRemovePatterns.includes(key));
26
27
  if (attributes.length) {
27
28
  componentAttrs += attributes
28
29
  .sort()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-preset-angular",
3
- "version": "12.2.5",
3
+ "version": "12.2.6",
4
4
  "description": "Jest preset configuration for Angular projects",
5
5
  "license": "MIT",
6
6
  "engines": {