Skip to content

Commit

Permalink
fix: fix missing chai types (#7149)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Jan 3, 2025
1 parent 010e7b2 commit 6a09cc3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vitest/config.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// ensure `@vitest/expect` provides `chai` types
import type {} from '@vitest/expect'
export * from './dist/config.js'
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions test/dts-config/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "@vitest/test-dts-config",
"type": "module",
"private": true,
"scripts": {
"test": "tsc -b"
},
"devDependencies": {
"vitest": "workspace:*"
}
}
11 changes: 11 additions & 0 deletions test/dts-config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"types": [],
"strict": true,
"noEmit": true
},
"include": ["vite.config.ts"]
}
3 changes: 3 additions & 0 deletions test/dts-config/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { defineConfig } from 'vitest/config'

export default defineConfig({})

0 comments on commit 6a09cc3

Please sign in to comment.