From 4838565e7c8886d29ae1e25caaee92ff84c5ba82 Mon Sep 17 00:00:00 2001 From: "Florian (Brunni)" Date: Wed, 22 Mar 2023 12:37:41 +0900 Subject: [PATCH] Fixed module mapper for css files in Jest --- packages/unit-jest/jest-preset.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/unit-jest/jest-preset.mjs b/packages/unit-jest/jest-preset.mjs index 7535717d..25371860 100644 --- a/packages/unit-jest/jest-preset.mjs +++ b/packages/unit-jest/jest-preset.mjs @@ -45,7 +45,7 @@ export const config = { // Quasar CJS export is SSR-only, so we need to use ESM build and transpile it with Babel '^quasar$': 'quasar/dist/quasar.esm.prod.js', '^~/(.*)$': '/$1', - '.*css$': '@quasar/quasar-app-extension-testing-unit-jest/stub.css', + '\\..*css$': '@quasar/quasar-app-extension-testing-unit-jest/stub.css', ...aliases, }, transform: {