Skip to content

Commit 8452fc6

Browse files
committed
chore: update ESLint and TypeScript configurations to include additional test file types and adjust type definitions
1 parent 9e29004 commit 8452fc6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"
77
import vitestPlugin from "@vitest/eslint-plugin";
88
import enforceZodV4 from "./eslint-rules/enforce-zod-v4.js";
99

10-
const testFiles = ["tests/**/*.test.ts", "tests/**/*.ts"];
10+
const testFiles = ["tests/**/*.test.ts", "tests/**/*.test.tsx", "tests/**/*.ts", "tests/**/*.tsx"];
1111

1212
const files = [...testFiles, "src/**/*.ts", "src/**/*.tsx", "scripts/**/*.ts"];
1313

tests/vitest.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// <reference types="@testing-library/jest-dom" />
12
import "vitest";
23

34
declare module "vitest" {

tsconfig.test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"isolatedModules": true,
55
"allowSyntheticDefaultImports": true,
6-
"types": ["node", "@testing-library/jest-dom"]
6+
"types": ["node"]
77
},
88
"include": ["src/**/*.ts", "src/**/*.tsx", "tests/**/*.ts", "tests/**/*.tsx"]
99
}

0 commit comments

Comments
 (0)