Skip to content

Commit

Permalink
Update test configuration for css files
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Cormier <kcormier@redhat.com>
  • Loading branch information
KevinFCormier committed Aug 28, 2024
1 parent 1103263 commit ca54456
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const config: Config.InitialOptions = {
setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
moduleNameMapper: {
'\\.(svg)$': '<rootDir>/src/svg.mock.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/file.mock.js',
'\\.(css|less)$': 'identity-obj-proxy',
'\\.(css|less|jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/src/file.mock.js',
'@patternfly/react-topology': '<rootDir>/node_modules/@patternfly/react-topology',
'monaco-editor': '<rootDir>/node_modules/react-monaco-editor',
'@console/*': '<rootDir>/__mocks__/dummy.ts',
Expand All @@ -24,7 +24,7 @@ const config: Config.InitialOptions = {
watchAll: false,
slowTestThreshold: 30,
watchPathIgnorePatterns: ['<rootDir>/../node_modules', '<rootDir>/../.eslintcache', '<rootDir>/../coverage'],
moduleFileExtensions: ['js', 'json', 'jsx', 'node', 'ts', 'tsx'],
moduleFileExtensions: ['js', 'json', 'jsx', 'node', 'ts', 'tsx', 'css'],
globals: {
'ts-jest': {
isolatedModules: true,
Expand All @@ -46,7 +46,7 @@ const config: Config.InitialOptions = {
'\\.(css|less|scss)$': '<rootDir>/jest-raw-loader.js',
},
transformIgnorePatterns: [
'node_modules/(?!d3-interpolate|d3-color|react-monaco-editor|@openshift-assisted|lodash-es|@patternfly/react-tokens|@patternfly/react-icons|@patternfly-labs/react-form-wizard|@juggle/resize-observer|@react-hook/*|uuid|@openshift-console/dynamic-plugin-sdk*|screenfull)',
'node_modules/(?!d3-interpolate|d3-color|d3-array|react-monaco-editor|@openshift-assisted|lodash-es|@patternfly/react-tokens|@patternfly/react-icons|@patternfly-labs/react-form-wizard|@juggle/resize-observer|@react-hook/*|uuid|@openshift-console/dynamic-plugin-sdk*|screenfull)',
],
ci: true,
collectCoverage: true,
Expand Down

0 comments on commit ca54456

Please sign in to comment.