Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9eb6cec

Browse files
authored
chore: revert "test(type-utils): skip mysteriously failing type unit tests (typescript-eslint#9427)" (typescript-eslint#9455)
1 parent 924913d commit 9eb6cec

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/type-utils/tests/getTypeName.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ import type * as ts from 'typescript';
66
import { getTypeName } from '../src';
77
import { expectToHaveParserServices } from './test-utils/expectToHaveParserServices';
88

9-
// TODO(#9426): re-enable this
10-
// eslint-disable-next-line jest/no-disabled-tests
11-
describe.skip('getTypeName', () => {
9+
describe('getTypeName', () => {
1210
function getTypes(code: string): { checker: ts.TypeChecker; type: ts.Type } {
1311
const rootDir = path.join(__dirname, 'fixtures');
1412

1513
const { ast, services } = parseForESLint(code, {
14+
disallowAutomaticSingleRunInference: true,
1615
project: './tsconfig.json',
1716
filePath: path.join(rootDir, 'file.ts'),
1817
tsconfigRootDir: rootDir,

packages/type-utils/tests/typeFlagUtils.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ import * as ts from 'typescript';
66
import { getTypeFlags, isTypeFlagSet } from '../src';
77
import { expectToHaveParserServices } from './test-utils/expectToHaveParserServices';
88

9-
// TODO(#9426): re-enable this
10-
// eslint-disable-next-line jest/no-disabled-tests
11-
describe.skip('typeFlagUtils', () => {
9+
describe('typeFlagUtils', () => {
1210
const rootDir = path.join(__dirname, 'fixtures');
1311

1412
function getType(code: string): ts.Type {
1513
const { ast, services } = parseForESLint(code, {
14+
disallowAutomaticSingleRunInference: true,
1615
project: './tsconfig.json',
1716
filePath: path.join(rootDir, 'file.ts'),
1817
tsconfigRootDir: rootDir,

0 commit comments

Comments
 (0)