Commit Graph

5 Commits

Author SHA1 Message Date
Michel Weststrate
2bf8ae2364 Get rid of perf_hooks package in Flipper UI
Summary:
perf_hooks is no longer needed as these APIs are widely available in both browser and electron.

Still needed in unit tests, as they run from Node

Reviewed By: lblasa, aigoncharov

Differential Revision: D32648253

fbshipit-source-id: 5718ea99b57f96f6858311fd0815ad18c476c99e
2021-12-08 04:30:55 -08:00
Andrey Goncharov
225a2a7e34 Refactor Stella plugin
Summary:
1. Replace old FileSelector with the new FileSelector
2. Remove showOpenDialog from FlipperLib

Reviewed By: mweststrate

Differential Revision: D32667103

fbshipit-source-id: be8da034c2695f83b397b6c7d35bc6aee78d66e5
2021-11-26 08:30:13 -08:00
Michel Weststrate
14c0a7965e Don't print debug logs in jest
Summary:
Don't print console.debug logs during unit tests

These diffs together reduce the amounts of logs printed during unit tests from 6000 to 3000.

Reviewed By: passy

Differential Revision: D32557595

fbshipit-source-id: eef2b742157f16638d9ce270cf8b3d8d0f4e2952
2021-11-19 04:01:02 -08:00
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