UNPKG

@newrelic/gatsby-theme-newrelic

Version:

[![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)

28 lines (25 loc) 502 B
/* 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, }) ), };