Skip to content
Snippets Groups Projects
Commit 069e86be authored by Long (Jackson) Le's avatar Long (Jackson) Le
Browse files

mock env

parent 8841c8f2
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,12 @@ import LikeButton from "../src/likeButton";
// Mock axios
vi.mock("axios");
describe("Like Functionality", () => {
const originalEnv = process.env;
const mockLoginServer = "http://test-login-server";
beforeEach(() => {
// Mock environment variables
vi.stubEnv("VITE_UPLOAD_SERVER", "http://test-upload-server");
vi.stubEnv("VITE_LOGIN_SERVER", mockLoginServer);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment