@typescript-eslint/rule-tester 8.70.1-alpha.14 → 8.70.1-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.
@@ -879,12 +879,12 @@ class RuleTester extends TestFramework_1.TestFramework {
879
879
  if ((0, hasOwnProperty_1.hasOwnProperty)(item, 'output')) {
880
880
  if (item.output == null) {
881
881
  if (result.outputs.length) {
882
- node_assert_1.default.strictEqual(result.outputs.at(-1), item.code, 'Expected no autofixes to be suggested.');
882
+ node_assert_1.default.strictEqual(result.outputs[0], item.code, 'Expected no autofixes to be suggested.');
883
883
  }
884
884
  }
885
885
  else if (typeof item.output === 'string') {
886
886
  (0, node_assert_1.default)(result.outputs.length > 0, 'Expected autofix to be suggested.');
887
- node_assert_1.default.strictEqual(result.outputs.at(-1), item.output, 'Output is incorrect.');
887
+ node_assert_1.default.strictEqual(result.outputs[0], item.output, 'Output is incorrect.');
888
888
  if (result.outputs.length) {
889
889
  node_assert_1.default.deepStrictEqual(result.outputs, [item.output], 'Multiple autofixes are required due to overlapping fix ranges - please use the array form of output to declare all of the expected autofix passes.');
890
890
  }
@@ -895,7 +895,7 @@ class RuleTester extends TestFramework_1.TestFramework {
895
895
  }
896
896
  }
897
897
  else if (result.outputs.length) {
898
- node_assert_1.default.strictEqual(result.outputs.at(-1), item.code, "The rule fixed the code. Please add 'output' property.");
898
+ node_assert_1.default.strictEqual(result.outputs[0], item.code, "The rule fixed the code. Please add 'output' property.");
899
899
  }
900
900
  assertASTDidntChange(result.beforeAST, result.afterAST);
901
901
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/rule-tester",
3
- "version": "8.70.1-alpha.14",
3
+ "version": "8.70.1-alpha.3",
4
4
  "description": "Tooling to test ESLint rules",
5
5
  "files": [
6
6
  "dist",
@@ -35,9 +35,9 @@
35
35
  ],
36
36
  "//": "NOTE - AJV is out-of-date, but it's intentionally synced with ESLint - https://github.com/eslint/eslint/blob/ad9dd6a933fd098a0d99c6a9aa059850535c23ee/package.json#L70",
37
37
  "dependencies": {
38
- "@typescript-eslint/parser": "8.70.1-alpha.14",
39
- "@typescript-eslint/typescript-estree": "8.70.1-alpha.14",
40
- "@typescript-eslint/utils": "8.70.1-alpha.14",
38
+ "@typescript-eslint/parser": "8.70.1-alpha.3",
39
+ "@typescript-eslint/typescript-estree": "8.70.1-alpha.3",
40
+ "@typescript-eslint/utils": "8.70.1-alpha.3",
41
41
  "ajv": "^6.12.6",
42
42
  "json-stable-stringify-without-jsonify": "^1.0.1",
43
43
  "lodash.merge": "4.6.2",