Can Reactjs test data endpoints?
Here I want to test the data output on the endpoint. My test: import { render, screen } from "@testing-library/react"; import axios from "axios"; import CompBuildingGeo from "./components/CompBuildingGeo"; import { getBuildingGEO } from "../../service/building"; const buildingGeo = async () =>…