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

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