mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 08:42:08 +10:00
16 lines
323 B
JavaScript
16 lines
323 B
JavaScript
const React = require(`react`);
|
|
const gatsby = jest.requireActual(`gatsby`);
|
|
|
|
module.exports = {
|
|
...gatsby,
|
|
graphql: jest.fn(),
|
|
Link: jest.fn().mockImplementation(({ to, ...rest }) =>
|
|
React.createElement(`a`, {
|
|
...rest,
|
|
href: to,
|
|
}),
|
|
),
|
|
StaticQuery: jest.fn(),
|
|
useStaticQuery: jest.fn(),
|
|
};
|