We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f1f2c7 commit 28b440aCopy full SHA for 28b440a
package.json
@@ -153,6 +153,9 @@
153
"<rootDir>/release-npm-package",
154
"<rootDir>/release-gcp",
155
"<rootDir>/release-images"
156
- ]
+ ],
157
+ "moduleNameMapper": {
158
+ "^.+\\.(css|less)$": "<rootDir>/test/cssStub.ts"
159
+ }
160
}
161
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