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