- 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
63 lines
1.3 KiB
JSON
63 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ESNext",
|
|
"module": "ESNext",
|
|
"lib": [
|
|
"esnext",
|
|
"dom"
|
|
],
|
|
"strict": true,
|
|
"strictNullChecks": false,
|
|
"strictFunctionTypes": false,
|
|
"strictPropertyInitialization": false,
|
|
"noImplicitAny": false,
|
|
"noImplicitThis": false,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"moduleResolution": "node",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"types": [
|
|
"bun-types",
|
|
"@types/node",
|
|
"@types/ws",
|
|
"@types/jsonwebtoken",
|
|
"@types/sanitize-html",
|
|
"@types/jest",
|
|
"@types/express"
|
|
],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": [
|
|
"src/*"
|
|
],
|
|
"@test/*": [
|
|
"test/*"
|
|
]
|
|
},
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"sourceMap": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"allowUnreachableCode": true,
|
|
"allowUnusedLabels": true,
|
|
"outDir": "dist",
|
|
"rootDir": "."
|
|
},
|
|
"include": [
|
|
"src/**/*",
|
|
"test/**/*",
|
|
"__tests__/**/*",
|
|
"*.d.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist",
|
|
"coverage"
|
|
]
|
|
} |