jest.config.js 390 B

1234567891011121314151617
  1. /** @format */
  2. module.exports = {
  3. roots: ['src'],
  4. preset: 'ts-jest',
  5. testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],
  6. transform: {
  7. '^.+\\.(ts|tsx)$': 'ts-jest',
  8. },
  9. globals: {
  10. 'ts-jest': {
  11. diagnostics: false,
  12. pathRegex: /\.(spec|test)\.ts$/,
  13. warnOnly: true,
  14. },
  15. },
  16. };