jest.config.js 490 B

12345678910111213141516171819
  1. /** @type {import('ts-jest').JestConfigWithTsJest} */
  2. module.exports = {
  3. preset: 'ts-jest',
  4. testEnvironment: 'jsdom',
  5. transform: {
  6. "^.+\\.tsx?$": [
  7. "ts-jest",
  8. {
  9. diagnostics: false,
  10. },
  11. ],
  12. },
  13. moduleNameMapper: {
  14. '^.+\\.(jpg|jpeg|png|gif|webp|svg)$': '<rootDir>/__mocks__/fileMock.js',
  15. '^shared/(.*)$': '<rootDir>/src/shared/$1',
  16. '^components/(.*)$': '<rootDir>/src/components/$1',
  17. '^assets/(.*)$': '<rootDir>/src/assets/$1',
  18. },
  19. };