hyperdx/packages/common-utils/jest.config.js
Warren Lee 843c00cc17
fix: Adjust CI logs verbosity (#1888)
## Summary
- Silence noisy `console.debug` and `console.info` logs in test output across `api` and `common-utils` packages
- Add `DOTENV_CONFIG_OVERRIDE=true` to API integration test scripts so `.env.test` values take precedence
- Add shared jest setup for `common-utils` to suppress verbose console output during tests

Now the CI stdout should be much cleaner and readable (int tests especially)
2026-03-11 20:32:02 +00:00

14 lines
404 B
JavaScript

/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
setupFilesAfterEnv: ['<rootDir>/../jest.setup.ts'],
verbose: true,
rootDir: './src',
testMatch: ['**/__tests__/*.test.ts?(x)'],
testPathIgnorePatterns: ['.*\\.int\\.test\\.ts$'],
testTimeout: 30000,
moduleNameMapper: {
'@/(.*)$': '<rootDir>/$1',
},
};