Skip to content

Commit

Permalink
test: mock only css files
Browse files Browse the repository at this point in the history
  • Loading branch information
soleksy-splunk committed Jun 5, 2024
1 parent 7291c2b commit 86e1f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
moduleNameMapper: {
// Force module uuid to resolve with the CJS entry point, because Jest does not support package.json.exports. See https://github.com/uuidjs/uuid/issues/451
uuid: require.resolve('uuid'),
'\\.(css|less|sass|scss)$': '<rootDir>/src/mocks/styleMock.js',
'\\.(css)$': '<rootDir>/src/mocks/styleMock.js',
},
transformIgnorePatterns: ['node_modules/@splunk/dashboard-presets/EnterpriseViewOnlyPreset'],
} satisfies Config;

0 comments on commit 86e1f98

Please sign in to comment.