mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-11-15 01:25:25 +01:00
Matthias Kretschmann
5a310017b9
* add current and next location * add documentation * api -> src/api symlink so local dev & Vercel work * add to footer * test changes * styling changes * spacing * layout fixes
28 lines
518 B
JavaScript
28 lines
518 B
JavaScript
const React = require('react')
|
|
const gatsby = jest.requireActual('gatsby')
|
|
|
|
module.exports = {
|
|
...gatsby,
|
|
graphql: jest.fn(),
|
|
Link: jest.fn().mockImplementation(
|
|
// these props are invalid for an `a` tag
|
|
({
|
|
activeClassName,
|
|
activeStyle,
|
|
getProps,
|
|
innerRef,
|
|
partiallyActive,
|
|
// ref,
|
|
replace,
|
|
to,
|
|
...rest
|
|
}) =>
|
|
React.createElement('a', {
|
|
...rest,
|
|
href: to
|
|
})
|
|
),
|
|
StaticQuery: jest.fn(),
|
|
useStaticQuery: jest.fn()
|
|
}
|