rickvanlieshout.com/tests/__mocks__/gatsby.js

11 lines
163 B
JavaScript
Raw Normal View History

2018-11-09 18:08:48 +01:00
'use strict';
const gatsby = jest.requireActual('gatsby');
module.exports = {
...gatsby,
graphql: jest.fn(),
Link: 'Link',
StaticQuery: 'StaticQuery'
};