- tsconfig (allowJs, strict .ts), npm run build -> dist/, typecheck, dev via tsx, ts-jest. - src/index.js is now a launcher (dist build when it matches, else tsx); server moved to app.js. - /api/v2: defineRoute with zod -> request validation, response stripping, OpenAPI 3.1 at /docs/v2; one error shape and one paged-list shape. First endpoints: events, event, me, my registrations. - deploy.sh/install.sh build the backend; rollback to older releases skips the build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls1vMdg2GYqbnKZmPaX1ot
9 lines
372 B
JavaScript
9 lines
372 B
JavaScript
module.exports = {
|
|
testEnvironment: 'node',
|
|
testMatch: ['**/tests/**/*.test.js', '**/tests/**/*.test.ts'],
|
|
// TypeScript (src/**/*.ts and tests) runs through ts-jest; plain JS is left as it is.
|
|
transform: { '^.+\\.ts$': ['ts-jest', { tsconfig: 'tsconfig.json' }] },
|
|
moduleFileExtensions: ['ts', 'js', 'json'],
|
|
modulePathIgnorePatterns: ['<rootDir>/dist/'],
|
|
};
|