mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 02:01:22 +02:00
- Implement recurring task handling using rrule library - createNextOccurrence() creates next task instance when completing recurring task - calculateNextStartDate() maintains offset between start/due dates - Copies labels, subtasks (reset), and metadata to new occurrence - Respects recurrenceEndDate limit - Fix N+1 query problem for task labels - Replace individual loadTaskLabels() calls with batch loadTaskLabelsBatch() - Reduces database queries from O(2n) to O(2) for task lists - Uses Maps for O(1) lookups when combining tasks with labels - Add Jest test coverage (25 tests) - CRUD operations, task status changes, recurrence - Special queries (inbox, today, completed) - Batch loading efficiency verification 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
480 B
JavaScript
16 lines
480 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: {
|
|
'^@todo/shared$': '<rootDir>/../../packages/shared/src',
|
|
'^@manacore/shared-nestjs-auth$': '<rootDir>/../../../../../packages/shared-nestjs-auth/src',
|
|
},
|
|
};
|