From b6fa85599e0aba0b34a0bd8d134bff5336782ac1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Sep 2019 16:29:56 +0300 Subject: Fix jest configuration for svg files --- vnext/__mocks__/fileMock.js | 1 + vnext/__mocks__/styleMock.js | 2 +- vnext/package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 vnext/__mocks__/fileMock.js (limited to 'vnext') 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)$": "/__mocks__/fileMock.js", "\\.(css|less|sass|scss)$": "/__mocks__/styleMock.js" }, "transform": { -- cgit v1.2.3