Commit Graph

2 Commits

Author SHA1 Message Date
Michel Weststrate
4dde5b4508 Unmount React tree automatically in tests
Summary: In the next diff, tests started to fail suddenly, probably as side effect of a changed module loading order or smthg, and started showing DOMs of different tests in test results. Figured that testing-library/react + jest doesn't automatically doesn't clean up the DOM as I hoped it would

Reviewed By: timur-valiev

Differential Revision: D32463402

fbshipit-source-id: 48d26badf774482e7320632e486dfc6358946484
2021-11-17 02:40:29 -08:00
Michel Weststrate
a78b6124d7 Add option to jest to run tests only locally, or on linux (#2609)
Summary:
Pull Request resolved: https://github.com/facebook/flipper/pull/2609

Make it possible to mark some tests to run on non-CI, or unix only

Reviewed By: nikoant

Differential Revision: D29813506

fbshipit-source-id: 140f8a4eaed5af3282ab9d139b46a52818be0934
2021-07-21 05:43:11 -07:00