jest.config.js 431 B

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