hyperdx/packages/api/jest.config.js
Shorpo 42969f243e
chore: Add path alias to api package (#107)
small dev ex improvement:

Before: `import { ... } from '../../../fixtures';`
After: `import { ... } from '@/fixtures';`

after checking out, rebuild `api` and `task-check-alerts` containers:
```sh
docker compose -f docker-compose.dev.yml up -d --no-deps --build task-check-alerts api
```
2023-11-17 21:31:24 +00:00

12 lines
297 B
JavaScript

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