jest.config.ts 354 B

123456789101112131415161718
  1. import type { JestConfigWithTsJest } from 'ts-jest/dist/types';
  2. const config: JestConfigWithTsJest = {
  3. transform: {
  4. '^.+\\.(ts|tsx)$': 'ts-jest',
  5. },
  6. testEnvironment: 'jsdom',
  7. setupFiles: [
  8. './js/test/jest/setup.ts',
  9. ],
  10. moduleNameMapper: {
  11. '^@test/(.*)$': '<rootDir>/test/$1',
  12. },
  13. rootDir: './src',
  14. };
  15. export default config;