-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.unit.config.ts
More file actions
43 lines (37 loc) · 2.73 KB
/
vitest.unit.config.ts
File metadata and controls
43 lines (37 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
███████████████████████████████████████████████████████████████████████████████
██******************** PRESENTED BY t33n Software ***************************██
██ ██
██ ████████╗██████╗ ██████╗ ███╗ ██╗ ██
██ ╚══██╔══╝╚════██╗╚════██╗████╗ ██║ ██
██ ██║ █████╔╝ █████╔╝██╔██╗ ██║ ██
██ ██║ ╚═══██╗ ╚═══██╗██║╚██╗██║ ██
██ ██║ ██████╔╝██████╔╝██║ ╚████║ ██
██ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ██
██ ██
███████████████████████████████████████████████████████████████████████████████
███████████████████████████████████████████████████████████████████████████████
*/
// ⚙️ Import necessary functions from vitest
import { defineConfig, mergeConfig } from 'vitest/config'
// 📜 Import the base Vitest configuration
import vitestConfig from './vitest.config'
/**
* @description Merges the base Vitest configuration with custom test settings.
* @returns {import('vitest/config').UserConfig} The merged Vitest configuration.
*/
export default mergeConfig(vitestConfig, defineConfig({
test: {
// 📂 Paths to include test files
include: ['test/unit/**/*.test.ts'],
// 🛠️ Setup file to prepare the testing environment
setupFiles: 'test/unit/pretestEach.ts',
// ⏳ Disable watching for changes during tests
watch: false,
// 📊 Configuration for coverage reports
coverage: {
// ❌ Exclude specific files from coverage calculations
exclude: ['**/route.ts']
}
}
}))