Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 9b9af0a

Browse files
committed
Use vitest's expectTypeOf
1 parent 031a323 commit 9b9af0a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
- name: Check
4141
run: pnpm run check
4242

43+
- name: Test types
44+
run: pnpm run typecheck
45+
4346
- name: Test
4447
run: pnpm run test
4548

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"check": "tsc",
1010
"format": "prettier --write .",
1111
"lint": "eslint .",
12+
"typecheck": "vitest typecheck",
1213
"test": "vitest",
1314
"coverage": "vitest run --coverage",
1415
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run check",

tests/define.test.ts renamed to tests/define.test-d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { expectTypeOf } from 'expect-type';
2-
import { describe, test } from 'vitest';
1+
import { describe, expectTypeOf, test } from 'vitest';
32
import type { ESLintConfig, FlatESLintConfig } from '../src';
43
import { defineConfig, defineFlatConfig } from '../src';
54

0 commit comments

Comments
 (0)