mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 17:54:53 +01:00
30 lines
552 B
JavaScript
30 lines
552 B
JavaScript
|
/* eslint-disable no-unused-vars */
|
||
|
|
||
|
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()
|
||
|
}
|