aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-09-06 16:29:56 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commitb6fa85599e0aba0b34a0bd8d134bff5336782ac1 (patch)
tree2f137cfb24f44f186568ad51fa0c6ca44ac95d75 /vnext
parent5103b8e0c78304635ac2a2ddebd9004ecb3e003b (diff)
Fix jest configuration for svg files
Diffstat (limited to 'vnext')
-rw-r--r--vnext/__mocks__/fileMock.js1
-rw-r--r--vnext/__mocks__/styleMock.js2
-rw-r--r--vnext/package.json1
3 files changed, 3 insertions, 1 deletions
diff --git a/vnext/__mocks__/fileMock.js b/vnext/__mocks__/fileMock.js
new file mode 100644
index 00000000..86059f36
--- /dev/null
+++ b/vnext/__mocks__/fileMock.js
@@ -0,0 +1 @@
+module.exports = 'test-file-stub';
diff --git a/vnext/__mocks__/styleMock.js b/vnext/__mocks__/styleMock.js
index 7c6d6c73..f053ebf7 100644
--- a/vnext/__mocks__/styleMock.js
+++ b/vnext/__mocks__/styleMock.js
@@ -1 +1 @@
-module.exports = {} \ No newline at end of file
+module.exports = {};
diff --git a/vnext/package.json b/vnext/package.json
index 90f9578c..d29bd859 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -68,6 +68,7 @@
},
"jest": {
"moduleNameMapper": {
+ "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|less|sass|scss)$": "<rootDir>/__mocks__/styleMock.js"
},
"transform": {