From d0c4809d8f922228f7a32c3410bd8c546447affe Mon Sep 17 00:00:00 2001 From: alxshelepenok Date: Thu, 9 May 2019 16:43:21 +0300 Subject: [PATCH] chore: minor fixes in the config --- jest/__mocks__/gatsby.js | 2 +- jest/jest-config.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/jest/__mocks__/gatsby.js b/jest/__mocks__/gatsby.js index 38c547f..2cde78d 100644 --- a/jest/__mocks__/gatsby.js +++ b/jest/__mocks__/gatsby.js @@ -25,5 +25,5 @@ module.exports = { ) ), StaticQuery: jest.fn(), - useStaticQuery: jest.fn(), + useStaticQuery: jest.fn() }; diff --git a/jest/jest-config.js b/jest/jest-config.js index 37a8e30..dc33b10 100644 --- a/jest/jest-config.js +++ b/jest/jest-config.js @@ -8,7 +8,7 @@ module.exports = { testMatch: ['**/__tests__/**/*.js', '**/?(*.)test.js'], moduleNameMapper: { '.+\\.(css|styl|less|sass|scss)$': 'identity-obj-proxy', - '.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/jest/__mocks__/fileMock.js' + '.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/jest/__mocks__/file-mock.js' }, testPathIgnorePatterns: ['node_modules', '.cache', 'public'], transformIgnorePatterns: [ @@ -17,6 +17,5 @@ module.exports = { globals: { __PATH_PREFIX__: '' }, - testURL: 'http://localhost/', setupFiles: ['/jest/loadershim.js'] };