- Redis Streams implementation with consumer groups (ade-workers) - Task interface with serialization/deserialization - Worker with heartbeat (5s) and task claiming - Retry logic with exponential backoff and jitter - Delayed task support via Sorted Sets - Dead worker reclamation (30s timeout) - Unit tests: 26 passing - TypeScript compilation successful
14 lines
265 B
JavaScript
14 lines
265 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/tests'],
|
|
testMatch: ['**/*.test.ts'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'!src/**/*.d.ts',
|
|
],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
};
|