Skip to content

Commit 2fd2e94

Browse files
committed
chore(config): add Vitest configuration file
- Added vitest.config.ts: - Configured Vitest settings with global variables and Node environment - Included specific test files (`kata*/**/*.Test.*`) - Excluded non-TypeScript test files (`**/node_modules/**`, `kata*/**/*.Test.coffee`, `kata*/**/*.Test.swift`, `kata*/**/*.Test.csharp`) - Set up coverage reporters for text, JSON, and HTML Introduced a new Vitest configuration file to define testing and coverage settings, ensuring compatibility with the project's testing structure and excluding non-relevant test files.
1 parent a4f1bf6 commit 2fd2e94

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

vitest.config.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/// <reference types="vitest/config" />
2+
import { defineConfig } from "vitest/config"
3+
4+
export default defineConfig({
5+
test: {
6+
globals: true,
7+
environment: "node",
8+
include: ["kata*/**/*.Test.*"],
9+
exclude: [
10+
"**/node_modules/**",
11+
"kata*/**/*.Test.coffee",
12+
"kata*/**/*.Test.swift",
13+
"kata*/**/*.Test.csharp",
14+
],
15+
coverage: {
16+
reporter: ["text", "json", "html"],
17+
},
18+
},
19+
})

0 commit comments

Comments
 (0)