Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 990b3ec

Browse files
committedSep 12, 2024·
use disallowAutomaticSingleRunInference
1 parent 2300291 commit 990b3ec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎tests/lib/rules/prefer-result-array-groups.ts

+4
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ tester.run("prefer-result-array-groups", rule as any, {
205205
parser: tsParser,
206206
parserOptions: {
207207
project: require.resolve("../../../tsconfig.json"),
208+
disallowAutomaticSingleRunInference: true,
208209
},
209210
},
210211
},
@@ -238,6 +239,7 @@ tester.run("prefer-result-array-groups", rule as any, {
238239
parser: tsParser,
239240
parserOptions: {
240241
project: require.resolve("../../../tsconfig.json"),
242+
disallowAutomaticSingleRunInference: true,
241243
},
242244
},
243245
},
@@ -257,6 +259,7 @@ tester.run("prefer-result-array-groups", rule as any, {
257259
parser: tsParser,
258260
parserOptions: {
259261
project: require.resolve("../../../tsconfig.json"),
262+
disallowAutomaticSingleRunInference: true,
260263
},
261264
},
262265
},
@@ -279,6 +282,7 @@ tester.run("prefer-result-array-groups", rule as any, {
279282
parser: tsParser,
280283
parserOptions: {
281284
project: require.resolve("../../../tsconfig.json"),
285+
disallowAutomaticSingleRunInference: true,
282286
},
283287
},
284288
},

‎tests/lib/utils/type-tracker/test-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function testTypeTrackerWithLinter(testCase: TestCase): string[] {
8686
parserOptions: {
8787
tsconfigRootDir,
8888
project,
89-
disallowAutomaticSingleRunInference: false,
89+
disallowAutomaticSingleRunInference: true,
9090
...testCase.languageOptions?.parserOptions,
9191
},
9292
},

0 commit comments

Comments
 (0)
Please sign in to comment.