@angular-eslint/utils 15.1.1-alpha.30 → 15.1.1-alpha.31

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.
@@ -67,16 +67,20 @@ class RuleTester extends utils_1.TSESLint.RuleTester {
67
67
  const errorMessage = `Do not set the parser at the test level unless you want to use a parser other than ${VALID_PARSERS.join(', ')}`;
68
68
  const parsedTests = {
69
69
  valid: valid.map((test) => {
70
+ var _a;
70
71
  if (typeof test !== 'string' && isValidParser(test.parser)) {
71
72
  throw Error(errorMessage);
72
73
  }
73
- return Object.assign(Object.assign({}, (typeof test === 'string' ? { code: test } : test)), { filename: this.filename });
74
+ return typeof test === 'string'
75
+ ? { code: test, filename: this.filename }
76
+ : Object.assign(Object.assign({}, test), { filename: (_a = test.filename) !== null && _a !== void 0 ? _a : this.filename });
74
77
  }),
75
78
  invalid: invalid.map((test) => {
79
+ var _a;
76
80
  if (isValidParser(test.parser)) {
77
81
  throw Error(errorMessage);
78
82
  }
79
- return Object.assign(Object.assign({}, test), { filename: this.filename });
83
+ return Object.assign(Object.assign({}, test), { filename: (_a = test.filename) !== null && _a !== void 0 ? _a : this.filename });
80
84
  }),
81
85
  };
82
86
  super.run(name, rule, parsedTests);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/utils",
3
- "version": "15.1.1-alpha.30+539cf9f",
3
+ "version": "15.1.1-alpha.31+37bfd14",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,8 +15,8 @@
15
15
  "typescript": "*"
16
16
  },
17
17
  "dependencies": {
18
- "@angular-eslint/bundled-angular-compiler": "15.1.1-alpha.30+539cf9f",
18
+ "@angular-eslint/bundled-angular-compiler": "15.1.1-alpha.31+37bfd14",
19
19
  "@typescript-eslint/utils": "5.45.1"
20
20
  },
21
- "gitHead": "539cf9f0cd33eae888cd27087ec9c22379161c93"
21
+ "gitHead": "37bfd14cfa14e213c13bad5fe87c057487bac6c3"
22
22
  }