Refactor imports (#470)
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import * as appHooks from "@/app/hooks";
|
||||
import { AppDispatch } from "@/app/store";
|
||||
import CalendarApp from "@/components/Calendar/Calendar";
|
||||
import {
|
||||
createEventHandlers,
|
||||
EventHandlersProps,
|
||||
} from "@/components/Calendar/handlers/eventHandlers";
|
||||
import * as eventThunks from "@/features/Calendars/services";
|
||||
import EventUpdateModal from "@/features/Events/EventUpdateModal";
|
||||
import { CalendarApi } from "@fullcalendar/core";
|
||||
import { jest } from "@jest/globals";
|
||||
import { ThunkDispatch } from "@reduxjs/toolkit";
|
||||
import "@testing-library/jest-dom";
|
||||
import {
|
||||
act,
|
||||
@@ -9,15 +17,7 @@ import {
|
||||
waitFor,
|
||||
within,
|
||||
} from "@testing-library/react";
|
||||
import * as appHooks from "../../src/app/hooks";
|
||||
import * as eventThunks from "../../src/features/Calendars/CalendarSlice";
|
||||
import CalendarApp from "../../src/components/Calendar/Calendar";
|
||||
import EventUpdateModal from "../../src/features/Events/EventUpdateModal";
|
||||
import { renderWithProviders } from "../utils/Renderwithproviders";
|
||||
import {
|
||||
createEventHandlers,
|
||||
EventHandlersProps,
|
||||
} from "../../src/components/Calendar/handlers/eventHandlers";
|
||||
|
||||
describe("CalendarApp integration", () => {
|
||||
const today = new Date();
|
||||
@@ -28,7 +28,7 @@ describe("CalendarApp integration", () => {
|
||||
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks();
|
||||
const dispatch = jest.fn() as ThunkDispatch<any, any, any>;
|
||||
const dispatch = jest.fn() as AppDispatch;
|
||||
jest.spyOn(appHooks, "useAppDispatch").mockReturnValue(dispatch);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user