Sets up Jest + ts-jest for the backend and adds 47 tests across 5 suites covering crypto utilities, OUI vendor lookup, auth middleware, AlertService dispatch/cooldown logic, and DeviceCollector uptime parsing.
13 lines
289 B
JavaScript
13 lines
289 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
testMatch: ['**/__tests__/**/*.test.ts'],
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'!src/db/migrations/**',
|
|
'!src/index.ts',
|
|
],
|
|
coverageReporters: ['text', 'lcov'],
|
|
};
|