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

This commit is contained in:
sp.wack 2024-11-12 12:50:38 +02:00 committed by GitHub
parent 04aeccfb69
commit de71b7cdb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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", "")