From 86e1f98c9b3c0088153fc952e3eb5399a65d7c1a Mon Sep 17 00:00:00 2001 From: Szymon Oleksy Date: Wed, 5 Jun 2024 13:47:10 +0200 Subject: [PATCH] test: mock only css files --- ui/jest.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jest.config.ts b/ui/jest.config.ts index 72adbd16d8..7b21edd207 100644 --- a/ui/jest.config.ts +++ b/ui/jest.config.ts @@ -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)$': '/src/mocks/styleMock.js', + '\\.(css)$': '/src/mocks/styleMock.js', }, transformIgnorePatterns: ['node_modules/@splunk/dashboard-presets/EnterpriseViewOnlyPreset'], } satisfies Config;