rickvanlieshout.com/tests/__mocks__/gatsby.js
2018-11-09 20:08:48 +03:00

11 lines
163 B
JavaScript

'use strict';
const gatsby = jest.requireActual('gatsby');
module.exports = {
...gatsby,
graphql: jest.fn(),
Link: 'Link',
StaticQuery: 'StaticQuery'
};