@angular-eslint/test-utils 19.2.2-alpha.2 → 19.2.2-alpha.3

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.
@@ -51,7 +51,13 @@ function convertAnnotatedSourceToFailureCase(errorOptions) {
51
51
  });
52
52
  return {
53
53
  name: errorOptions.description,
54
- code: parsedSource,
54
+ code:
55
+ // If the rule docs are being generated by importing the test cases,
56
+ // then use the original annotated source because the docs need the
57
+ // annotations and the tests are not actually being run.
58
+ process.env.GENERATING_RULE_DOCS === '1'
59
+ ? errorOptions.annotatedSource
60
+ : parsedSource,
55
61
  filename: errorOptions.filename,
56
62
  options: errorOptions.options ?? [],
57
63
  errors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/test-utils",
3
- "version": "19.2.2-alpha.2",
3
+ "version": "19.2.2-alpha.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "@typescript-eslint/utils": "^7.11.0 || ^8.0.0",
23
23
  "eslint": "^8.57.0 || ^9.0.0",
24
24
  "typescript": "*",
25
- "@angular-eslint/template-parser": "19.2.2-alpha.2"
25
+ "@angular-eslint/template-parser": "19.2.2-alpha.3"
26
26
  },
27
27
  "peerDependenciesMeta": {
28
28
  "@angular-eslint/template-parser": {