Skip to main content
๐Ÿ› Bug HuntQA Testing & QA Easyโšก+10 XP

Missing Async Await

This test always passes even when the promise rejects.

๐Ÿ› Find the bug
1test("fetches user", () => {
2 expect(fetchUser(1)).resolves.toBe("Alice");
3});
๐Ÿ› The bug is on line 2

๐Ÿ”ง Select the correct fix: