Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

9 lignes
434 B

  1. // https://www.npmjs.com/package/jest-dom
  2. require('@testing-library/jest-dom/extend-expect')
  3. // TODO: Ignore warnings about act(), it refers to having async side effects updating the state;
  4. // This happens because our async getFilesFromEvent() fn
  5. // See https://github.com/kentcdodds/react-testing-library/issues/281,
  6. // https://github.com/facebook/react/issues/14769
  7. jest.spyOn(console, 'error').mockImplementation(() => jest.fn())