mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 04:46:42 +02:00
Chat (62→82): Add DB indexes on all tables, rate limiting (ThrottlerModule), space authorization checks (member verification, invite permissions), input validation DTOs with @MaxLength, complete GDPR user deletion (templates + usage logs), fix HTML injection in hooks.server.ts. 78 tests added (conversation + space services). Picture (68→82): Add DB indexes on all tables, foreign key constraints with cascade rules, rate limiting, webhook endpoint security (secret header validation), input validation on generate DTO (@Min/@Max on dimensions/steps/guidance), transaction wrapping for board duplication and generation completion. 70 tests added (image + board services). Mukke (62→80): Add 73 new tests (beat, marker, project services) on top of existing 40 tests, bringing total to 113. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
569 B
JavaScript
17 lines
569 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: {
|
|
'^@chat/types$': '<rootDir>/../../packages/chat-types/src',
|
|
'^@manacore/shared-nestjs-auth$': '<rootDir>/../../../../../packages/shared-nestjs-auth/src',
|
|
'^@manacore/shared-errors$': '<rootDir>/../../../../../packages/shared-errors/src',
|
|
},
|
|
};
|