Skip to content

Commit a8ab9a8

Browse files
committed
test(rich-text-web): mock styleMock
1 parent dd496ba commit a8ab9a8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/pluggableWidgets/rich-text-web/jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ module.exports = {
55
* we mark `nanoevents` as a module that should be transformed by ts-jest.
66
*/
77
transformIgnorePatterns: ["node_modules/(?!quill)/"],
8+
preset: "ts-jest",
9+
testEnvironment: "jsdom",
810
moduleNameMapper: {
9-
"^quill-resize-module$": "<rootDir>/src/__mocks__/quill-resize-module.ts"
11+
"^quill-resize-module$": "<rootDir>/src/__mocks__/quill-resize-module.ts",
12+
"\\.(css|scss)$": "<rootDir>/src/__mocks__/styleMock.js"
1013
}
1114
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// This is a mock file for CSS/SCSS imports in Jest tests
2+
module.exports = {};

0 commit comments

Comments
 (0)