-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbunfig.toml
More file actions
43 lines (33 loc) · 1.03 KB
/
bunfig.toml
File metadata and controls
43 lines (33 loc) · 1.03 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
# Bun Test Configuration
# See: https://bun.sh/docs/test/configuration
[test]
# Test discovery - Bun automatically finds *.test.js and *.spec.js files
# Test patterns: ["**/*.test.js", "**/*.spec.js"] (Bun's default)
# Preload file for test environment setup
preload = ["./tests/setup.ts"]
# Test execution timeout in milliseconds (10 seconds)
timeout = 10000
# Coverage settings
coverage = true
coverageReporter = ["text", "lcov"]
coverageDir = "./coverage"
# Minimum 50% coverage threshold (lowered from 70% - index.js has complex plugin initialization code)
coverageThreshold = { lines = 0.50, functions = 0.50, statements = 0.50 }
# Exclude test files from coverage reports
coverageSkipTestFiles = true
# Ignore patterns from coverage
coveragePathIgnorePatterns = [
# Test files and fixtures
"**/tests/**",
"**/*.test.js",
"**/*.spec.js",
"**/fixtures/**",
# Configuration files
"*.config.js",
"bunfig.toml",
# Assets (non-code)
"**/assets/**",
# Generated/vendor
"**/node_modules/**",
"**/coverage/**"
]