Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed Dec 29, 2021
1 parent b482f03 commit edb5bc9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 11 deletions.
1 change: 1 addition & 0 deletions packages/type-utils/package.json
Expand Up @@ -44,6 +44,7 @@
"tsutils": "^3.21.0"
},
"devDependencies": {
"@typescript-eslint/parser": "5.8.1",
"typescript": "*"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/type-utils/src/predicates.ts
Expand Up @@ -99,7 +99,7 @@ export function isTypeUnknownArrayType(
);
}

export const enum AnyType {
export enum AnyType {
Any,
AnyArray,
Safe,
Expand Down
7 changes: 0 additions & 7 deletions packages/type-utils/tests/eslint-utils/index.test.ts

This file was deleted.

Empty file.
14 changes: 14 additions & 0 deletions packages/type-utils/tests/fixtures/tsconfig.json
@@ -0,0 +1,14 @@
{
"compilerOptions": {
"jsx": "preserve",
"target": "es5",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"lib": ["es2015", "es2017", "esnext"],
"experimentalDecorators": true
},
"include": [
"file.ts"
]
}
@@ -1,12 +1,11 @@
import * as ts from 'typescript';
import { TSESTree } from '@typescript-eslint/experimental-utils';
import { parseForESLint } from '@typescript-eslint/parser';
import { isUnsafeAssignment } from '@typescript-eslint/type-utils';
import { isUnsafeAssignment } from '../src/isUnsafeAssignment';
import path from 'path';
import { getFixturesRootDir } from '../RuleTester';

describe('isUnsafeAssignment', () => {
const rootDir = getFixturesRootDir();
const rootDir = path.join(__dirname, 'fixtures');

function getTypes(code: string): {
sender: ts.Type;
Expand Down

0 comments on commit edb5bc9

Please sign in to comment.