Incorrect include for tests, only test lib directory, import vitest globals

This commit is contained in:
koloml committed 2025-02-20 22:27:04 +04:00
1 parent ab5a6daa07
commit 6a34822f6a
2 files changed
+4 -2

No files matched your search

+3
View File
@@ -11,5 +11,8 @@
"strict": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": false,
"types": [
"vitest/globals"
]
}
}
+1 -2
View File
@@ -12,11 +12,10 @@ export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
include: ['src/**/*.{js,ts}'],
exclude: ['**/node_modules/**', '.*\\.d\\.ts$', '.*\\.spec\\.ts$'],
coverage: {
reporter: ['text', 'html'],
include: ['src/**/*.{js,ts}'],
include: ['src/lib/**/*.{js,ts}'],
}
}
});