39% but error
This commit is contained in:
@@ -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