You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first failing test is: it('should send name, email, _id but not password ', async ()=>{ const res = await happyPath(); expect(res.body.password).toBeUndefined(); //! This is passing expect(Object.keys(res.body)).toEqual(expect.arrayContaining([ '_id', 'name', 'email' ])); //? Why this is failing });
The second failing test is: it('should return 200 if a valid user', async ()=>{ const res = await happyPath(); //? Why this is failing. expect(res.statusCode).toBe(200); });