Vagr9K/gatsby-material-starter

View on GitHub
themes/material/__mocks__/gatsby-theme-advanced.js

Summary

Maintainability
A
0 mins
Test Coverage
const GatsbyThemeAdvanced = jest.requireActual("gatsby-theme-advanced");

jest.mock("gatsby-theme-advanced/src/config/useConfig", () => {
  const configFixture = jest.requireActual("../test/fixtures/config").default;
  return jest.fn().mockReturnValue(configFixture);
});

module.exports = {
  ...GatsbyThemeAdvanced,
};