Comprehensive email feature expansion: Backend: - Add database migrations for email system tables - Create email templates for users, orders, and employees - Add unit tests for core email services - Add integration test infrastructure - Configure Jest and TypeScript Plugin Messaging: - Add API client for messages service - Add webhook verifier for security - Add threading tests and configuration Shared: - Create shared types and constants package Frontend (users): - Add email preferences management UI - Add email address management components - Create unsubscribe flow Frontend (admin): - Add integration documentation and exports 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
597 B
JavaScript
30 lines
597 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
roots: ['<rootDir>/src'],
|
|
testMatch: ['**/*.spec.ts'],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
},
|
|
collectCoverageFrom: [
|
|
'src/**/*.ts',
|
|
'!src/**/*.spec.ts',
|
|
'!src/test/**/*',
|
|
'!src/**/*.d.ts',
|
|
'!src/index.ts',
|
|
],
|
|
coverageReporters: ['text', 'lcov', 'html'],
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 80,
|
|
functions: 80,
|
|
lines: 80,
|
|
statements: 80,
|
|
},
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
testTimeout: 10000,
|
|
maxWorkers: '50%',
|
|
}
|