jest.config.js 430 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$': [
  9. 'ts-jest',
  10. {
  11. tsconfig: {
  12. allowJs: true,
  13. },
  14. },
  15. ],
  16. },
  17. testEnvironment: 'node',
  18. };