- Update test files to use Bun's native test and mocking utilities - Replace Jest-specific imports and mocking techniques with Bun equivalents - Refactor test setup to use Bun's mock module and testing conventions - Add new `test/setup.ts` for global test configuration and mocks - Improve test reliability and simplify mocking approach - Update TypeScript configuration to support Bun testing ecosystem
53 lines
807 B
TOML
53 lines
807 B
TOML
[test]
|
|
preload = ["./test/setup.ts"]
|
|
coverage = true
|
|
coverageThreshold = {
|
|
statements = 80,
|
|
branches = 70,
|
|
functions = 80,
|
|
lines = 80
|
|
}
|
|
timeout = 10000
|
|
testMatch = ["**/__tests__/**/*.test.ts"]
|
|
testPathIgnorePatterns = ["/node_modules/", "/dist/"]
|
|
collectCoverageFrom = [
|
|
"src/**/*.{ts,tsx}",
|
|
"!src/**/*.d.ts",
|
|
"!src/**/*.test.ts",
|
|
"!src/types/**/*",
|
|
"!src/mocks/**/*"
|
|
]
|
|
|
|
[build]
|
|
target = "node"
|
|
outdir = "./dist"
|
|
minify = true
|
|
sourcemap = "external"
|
|
|
|
[install]
|
|
production = false
|
|
frozen = true
|
|
peer = false
|
|
|
|
[install.cache]
|
|
dir = ".bun"
|
|
disable = false
|
|
|
|
[debug]
|
|
port = 9229
|
|
|
|
[env]
|
|
# Environment-specific configurations
|
|
development.LOG_LEVEL = "debug"
|
|
production.LOG_LEVEL = "warn"
|
|
|
|
[hot]
|
|
restart = true
|
|
reload = true
|
|
|
|
[performance]
|
|
gc = true
|
|
optimize = true
|
|
|
|
[test.env]
|
|
NODE_ENV = "test" |