Dependencies updated & small enhancements (#27)
* Dependencies updated and imports shortened * Head tags refactored * Final tweaks
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { render, screen, waitFor } from "../reactUtils";
|
||||
import { htmlRes, resolveFetchWith } from "../commonUtils";
|
||||
import { render, screen, waitFor } from "@tests/reactUtils";
|
||||
import { htmlRes, resolveFetchWith } from "@tests/commonUtils";
|
||||
import userEvent from "@testing-library/user-event";
|
||||
import Router from "next/router";
|
||||
import faker from "faker";
|
||||
import Page, { getStaticProps } from "../../pages/[[...slug]]";
|
||||
import Page, { getStaticProps } from "@pages/[[...slug]]";
|
||||
|
||||
const mockPush = jest.spyOn(Router, "push").mockImplementation(async () => true);
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { createTestClient } from "apollo-server-testing";
|
||||
import { ApolloServer } from "apollo-server-micro";
|
||||
import faker from "faker";
|
||||
import { htmlRes, resolveFetchWith } from "../../commonUtils";
|
||||
import { typeDefs, resolvers } from "../../../pages/api/graphql";
|
||||
import { htmlRes, resolveFetchWith } from "@tests/commonUtils";
|
||||
import { typeDefs, resolvers } from "@pages/api/graphql";
|
||||
|
||||
beforeEach(() => {
|
||||
fetchMock.resetMocks();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import httpMocks from "node-mocks-http";
|
||||
import faker from "faker";
|
||||
import { htmlRes, resolveFetchWith } from "../../../commonUtils";
|
||||
import handler from "../../../../pages/api/v1/[[...slug]]";
|
||||
import { htmlRes, resolveFetchWith } from "@tests/commonUtils";
|
||||
import handler from "@pages/api/v1/[[...slug]]";
|
||||
|
||||
beforeEach(() => {
|
||||
fetchMock.resetMocks();
|
||||
|
||||
Reference in New Issue
Block a user