mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-30 16:54:11 +01:00
29 lines
486 B
TypeScript
29 lines
486 B
TypeScript
|
import React from "react";
|
||
|
|
||
|
const gatsby = jest.requireActual("gatsby");
|
||
|
|
||
|
export default {
|
||
|
...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(),
|
||
|
};
|