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 b0275c3 commit 0bd1725Copy full SHA for 0bd1725
package.json
@@ -145,6 +145,9 @@
145
},
146
"modulePathIgnorePatterns": [
147
"<rootDir>/release"
148
- ]
+ ],
149
+ "moduleNameMapper": {
150
+ "^.+\\.(css|less)$": "<rootDir>/test/cssStub.ts"
151
+ }
152
}
153
test/cssStub.ts
@@ -0,0 +1,5 @@
1
+// Note: this is needed for the register.test.ts
2
+// This is because inside src/browser/register.ts
3
+// we import CSS files, which Jest can't handle unless we tell it how to
4
+// See: https://stackoverflow.com/a/39434579/3015595
5
+module.exports = {}
0 commit comments