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'] };