UNPKG

@sailboat-computer/event-bus

Version:

Standardized event bus for sailboat computer v3 with resilience features and offline capabilities

43 lines (41 loc) 668 B
/** * Jest configuration for event-bus package */ module.exports = { preset: 'ts-jest', testEnvironment: 'node', roots: [ '<rootDir>/src', '<rootDir>/tests' ], testMatch: [ '**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts' ], collectCoverageFrom: [ 'src/**/*.ts', '!src/**/*.d.ts', '!src/**/index.ts' ], coverageThreshold: { global: { branches: 80, functions: 80, lines: 80, statements: 80 } }, transform: { '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.json' }] }, moduleFileExtensions: [ 'ts', 'tsx', 'js', 'jsx', 'json', 'node' ] };