SHARE
TWEET

Untitled

a guest Jun 25th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // unit.test.js
  2.  
  3. jest.mock('./api')
  4.  
  5. it('does something', () => {
  6.   // Linting error:  
  7.   // Property 'mockResolvedValue' does not exist on type () => Promise<any>
  8.   api.loadStudents.mockResolvedValue([]);
  9. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top