Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion knip.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/knip@6/schema.json",
"entry": ["scripts/*.mjs"],
"entry": ["scripts/*.mjs", "src/**/*.test-d.ts"],
"project": ["src/**/*.ts", "scripts/*.mjs"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 2 additions & 11 deletions vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
import {configDefaults, defineConfig, type ViteUserConfig} from 'vitest/config'
import {defineConfig, type ViteUserConfig} from 'vitest/config'

const config: ViteUserConfig = defineConfig({
test: {
include: ['src/**/__tests__/**/*.ts'],
exclude: [
...configDefaults.exclude,
// Shared helpers, not a test file.
'src/__tests__/utils.ts',
// Type tests: `npm run typecheck` checks them. At runtime every
// `expectTypeOf` call is a no-op, so they would pass without testing
// anything.
'src/**/*.test-d.ts',
],
include: ['src/**/__tests__/**/*.test.ts'],
coverage: {
provider: 'v8',
include: ['src/**/*.ts'],
Expand Down
Loading