mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
* fix: CVE-2024-21538 upgrading the indirect dep cross-spawn to greater than 7.0.5 Signed-off-by: nmirasch <neus.miras@gmail.com> * rebasing Signed-off-by: nmirasch <neus.miras@gmail.com> --------- Signed-off-by: nmirasch <neus.miras@gmail.com>
21 lines
597 B
JavaScript
21 lines
597 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'jsdom',
|
|
reporters: ['default', 'jest-junit'],
|
|
collectCoverage: true,
|
|
transformIgnorePatterns: ['node_modules/(?!(argo-ui)/)'],
|
|
transform: {
|
|
'^.+\\.tsx?$': ['ts-jest', {
|
|
isolatedModules: true,
|
|
}]
|
|
},
|
|
globals: {
|
|
'self': {}
|
|
},
|
|
moduleNameMapper: {
|
|
// https://github.com/facebook/jest/issues/3094
|
|
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
|
|
'.+\\.(css|styl|less|sass|scss)$': '<rootDir>/__mocks__/fileMock.js',
|
|
},
|
|
};
|