mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 18:21:22 +02:00
Calendar Web (3 new test files, 29 tests): - dateNavigation: getOffsetDate for week/month/agenda views - eventDateHelpers: toDate, getEventStart/End/Times - eventFiltering: calendar visibility, timed/all-day filtering, hour ranges, overflow events, tag filtering Contacts Backend (jest setup + 1 test file, 14 tests): - Add jest config and test scripts - contact.service.spec.ts: findByUserId, findById, create, update, toggleFavorite, toggleArchive, count Contacts Web (1 new test file, 6 tests): - duplicates API: findDuplicates, mergeContacts, dismissDuplicate Todo Backend (2 new test files, 24 tests): - project.service.spec.ts: CRUD, archive, reorder, default project protection - label.service.spec.ts: CRUD with NotFoundException handling Todo Web (2 new test files, 14 tests): - projects API: CRUD, archive, reorder - reminders API: getReminders, createReminder, deleteReminder Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
484 B
JavaScript
16 lines
484 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
moduleFileExtensions: ['js', 'json', 'ts'],
|
|
rootDir: 'src',
|
|
testRegex: '.*\\.spec\\.ts$',
|
|
transform: {
|
|
'^.+\\.(t|j)s$': 'ts-jest',
|
|
},
|
|
collectCoverageFrom: ['**/*.(t|j)s'],
|
|
coverageDirectory: '../coverage',
|
|
testEnvironment: 'node',
|
|
moduleNameMapper: {
|
|
'^@contacts/shared$': '<rootDir>/../../packages/shared/src',
|
|
'^@manacore/shared-nestjs-auth$': '<rootDir>/../../../../../packages/shared-nestjs-auth/src',
|
|
},
|
|
};
|