We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd496ba commit a8ab9a8Copy full SHA for a8ab9a8
packages/pluggableWidgets/rich-text-web/jest.config.js
@@ -5,7 +5,10 @@ module.exports = {
5
* we mark `nanoevents` as a module that should be transformed by ts-jest.
6
*/
7
transformIgnorePatterns: ["node_modules/(?!quill)/"],
8
+ preset: "ts-jest",
9
+ testEnvironment: "jsdom",
10
moduleNameMapper: {
- "^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"
13
}
14
};
packages/pluggableWidgets/rich-text-web/src/__mocks__/styleMock.js
@@ -0,0 +1,2 @@
1
+// This is a mock file for CSS/SCSS imports in Jest tests
2
+module.exports = {};
0 commit comments