๐ Bug HuntQA Testing & QA Easyโก+10 XP
Missing Async Await
This test always passes even when the promise rejects.
๐ Find the bug
1
test("fetches user", () => {2
expect(fetchUser(1)).resolves.toBe("Alice");3
});๐ The bug is on line 2