812e53e4eb
* feat: implement state machine for chat synchronization and buffer management * test: Add Jest configuration and tests for connection deadlock handling - Created a Jest configuration file to set up testing environment. - Implemented utility functions for creating isolated authentication sessions and mocking WebSocket connections. - Added a test case to ensure that the connection does not deadlock when history sync is disabled, verifying the correct handling of message events. * feat: add GitHub Actions workflow for running tests * chore: sort import lint * fix: implement timeout handling for AwaitingInitialSync state in chat socket, maybe fix memory leak * feat: enhance chat synchronization by refining AwaitingInitialSync handling and adding history sync checks
40 lines
878 B
JSON
40 lines
878 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"outDir": "lib",
|
|
"declaration": true,
|
|
"sourceMap": true,
|
|
"declarationMap": true,
|
|
"moduleDetection": "force",
|
|
|
|
"lib": ["ES2020", "ESNext.Array", "DOM"],
|
|
"rootDir": "./src",
|
|
|
|
// ESM Features
|
|
"verbatimModuleSyntax": true,
|
|
"allowImportingTsExtensions": true,
|
|
"noEmit": true,
|
|
|
|
// Type Safety
|
|
"strict": true,
|
|
"strictNullChecks": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noImplicitThis": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"skipLibCheck": true,
|
|
|
|
// Interop
|
|
"esModuleInterop": true,
|
|
"resolveJsonModule": true,
|
|
|
|
// DX Boosters
|
|
"allowJs": false,
|
|
"checkJs": false,
|
|
},
|
|
"include": ["src/**/*.ts"],
|
|
"exclude": ["node_modules"]
|
|
}
|