Browse Source

test(frontend): Fix failing e2e test due to mock delay (#4923)

sp.wack 1 year ago
parent
commit
de71b7cdb8
1 changed files with 0 additions and 2 deletions
  1. 0 2
      frontend/src/mocks/handlers.ts

+ 0 - 2
frontend/src/mocks/handlers.ts

@@ -71,8 +71,6 @@ const openHandsHandlers = [
 export const handlers = [
   ...openHandsHandlers,
   http.get("https://api.github.com/user/repos", async ({ request }) => {
-    if (import.meta.env.MODE !== "test") await delay(3500);
-
     const token = request.headers
       .get("Authorization")
       ?.replace("Bearer", "")