jest.config.js 418 B

123456789101112131415161718
  1. module.exports = {
  2. coverageDirectory: 'coverage',
  3. moduleFileExtensions: ['js', 'json', 'ts'],
  4. preset: 'ts-jest',
  5. rootDir: __dirname,
  6. roots: ['<rootDir>/src', '<rootDir>/mock-data'],
  7. transform: {
  8. '^.+\\.(t|j)s$': 'ts-jest',
  9. },
  10. globals: {
  11. 'ts-jest': {
  12. tsconfig: {
  13. allowJs: true,
  14. },
  15. },
  16. },
  17. testEnvironment: 'node',
  18. };