Files
s.esmaeili ea86636027 Initial commit: Hedena Gold monorepo.
First commit of the Hedena Gold product (separate from gold-bank): branding, package names, and deploy defaults aligned to the new brand; legacy Henza trees stay local-only via .gitignore.
2026-10-15 17:19:10 +03:30

23 lines
779 B
JavaScript

/**
* Jest for apps/api.
*
* `pnpm test` existed in package.json from the start but jest was never a
* dependency, so the script always failed. Added during security-hotfix stage 2
* with the user's approval, dev-only.
*
* Unit tests live next to the code as *.spec.ts. The live-server integration
* checks stay in scripts/auth-smoke.sh — they need a running API and a seeded
* database, which is a different thing from a unit run.
*/
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
rootDir: 'src',
testRegex: '.*\\.spec\\.ts$',
moduleFileExtensions: ['js', 'json', 'ts'],
transform: {
'^.+\\.ts$': ['ts-jest', { tsconfig: '<rootDir>/../tsconfig.json' }],
},
collectCoverageFrom: ['**/*.ts', '!**/*.spec.ts', '!**/*.module.ts'],
};