mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 23:09:16 +01:00
30 lines
475 B
JavaScript
30 lines
475 B
JavaScript
'use strict';
|
|
|
|
const React = require('react');
|
|
|
|
const gatsby = jest.requireActual('gatsby');
|
|
|
|
module.exports = {
|
|
...gatsby,
|
|
graphql: jest.fn(),
|
|
Link: jest.fn().mockImplementation(
|
|
({
|
|
activeClassName,
|
|
activeStyle,
|
|
getProps,
|
|
innerRef,
|
|
ref,
|
|
replace,
|
|
to,
|
|
...rest
|
|
}) => (
|
|
React.createElement('a', {
|
|
...rest,
|
|
href: to,
|
|
})
|
|
)
|
|
),
|
|
StaticQuery: jest.fn(),
|
|
useStaticQuery: jest.fn(),
|
|
};
|