14a32bdc0d
- Unified monorepo with backend (Express), frontend (Next.js), and devops - Backend: ESLint, Prettier, Jest tests (3 passing), health endpoint, .env.example - Frontend: Fixed build errors, fixed all lint errors (0 remaining), tests passing - DevOps: Docker Compose with PostgreSQL, backend, frontend + healthchecks - CI/CD: 3 GitHub Actions workflows (backend, frontend, docker integration) - DX: Husky pre-commit hooks with smart change detection - Docs: Root README with architecture, CONTRIBUTING.md, PR template Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
22 lines
513 B
JavaScript
22 lines
513 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
export default {
|
|
preset: "ts-jest/presets/default-esm",
|
|
testEnvironment: "node",
|
|
roots: ["<rootDir>/src"],
|
|
moduleNameMapper: {
|
|
"^(\\.{1,2}/.*)\\.js$": "$1",
|
|
},
|
|
transform: {
|
|
"^.+\\.tsx?$": [
|
|
"ts-jest",
|
|
{
|
|
useESM: true,
|
|
},
|
|
],
|
|
},
|
|
extensionsToTreatAsEsm: [".ts"],
|
|
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.test.ts"],
|
|
coverageDirectory: "coverage",
|
|
coverageReporters: ["text", "lcov", "clover"],
|
|
};
|