github.com/argoproj/argo-cd/v3@v3.2.1/ui/jest.config.js (about)

     1  module.exports = {
     2    preset: 'ts-jest',
     3    testEnvironment: 'jsdom',
     4    reporters: ['default', 'jest-junit'],
     5    collectCoverage: true,
     6    transformIgnorePatterns: ['node_modules/(?!(argo-ui)/)'],
     7    transform: {
     8      '^.+\\.tsx?$': ['ts-jest', {
     9        isolatedModules: true,
    10      }]
    11    },
    12    globals: {
    13      'self': {}
    14    },
    15    moduleNameMapper: {
    16      // https://github.com/facebook/jest/issues/3094
    17      '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
    18      '.+\\.(css|styl|less|sass|scss)$': '<rootDir>/__mocks__/fileMock.js',
    19    },
    20  };