39% but error
This commit is contained in:
@@ -3,7 +3,7 @@ import { render, screen } from "@testing-library/react";
|
||||
import { Provider } from "react-redux";
|
||||
import configureStore from "redux-mock-store";
|
||||
import Home from "src/pages/Home";
|
||||
import { useGetChatsQuery } from "../backend/redux/api_slice";
|
||||
import { useGetChatsQuery } from "src/backend/redux/api_slice";
|
||||
|
||||
// Mock Redux store
|
||||
const mockStore = configureStore([]);
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import React from "react";
|
||||
import { render, screen, fireEvent } from "@testing-library/react";
|
||||
import SignIn from "../pages/SignIn";
|
||||
import { displayMessage } from "../backend/notifications/notifications";
|
||||
import { post } from "../backend/api";
|
||||
import SignIn from "src/pages/SignIn";
|
||||
import { displayMessage } from "src/backend/notifications/notifications";
|
||||
import { post } from "src/backend/api";
|
||||
|
||||
// Mock the displayMessage and post functions
|
||||
jest.mock("../backend/notifications/notifications", () => ({
|
||||
jest.mock("src/backend/notifications/notifications", () => ({
|
||||
displayMessage: jest.fn(),
|
||||
}));
|
||||
jest.mock("../backend/api", () => ({
|
||||
jest.mock("src/backend/api", () => ({
|
||||
post: jest.fn(),
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user