mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-18 16:34:39 +02:00
17 lines
317 B
TypeScript
17 lines
317 B
TypeScript
import React from "react";
|
|
|
|
const gatsby = jest.requireActual("gatsby");
|
|
|
|
export default {
|
|
...gatsby,
|
|
graphql: jest.fn(),
|
|
Link: jest.fn().mockImplementation(({ to, ...rest }) =>
|
|
React.createElement("a", {
|
|
...rest,
|
|
href: to,
|
|
}),
|
|
),
|
|
StaticQuery: jest.fn(),
|
|
useStaticQuery: jest.fn(),
|
|
};
|