Commit Graph
21 Commits
Author SHA1 Message Date
Brian Vaughn cb3fb42129 Patch console to append component stacks (#348)
* Patch console.warn and console.error to auto-append owners-only component stacks.

This setting is enabled by default and will work for React Native even if no front-end DevTools shell is being used. The setting can be disabled via a new, persisted user preference though.
2019-07-17 11:12:39 -07:00
Dan Abramov ad7458bb42 Merge branch 'master' into legacy 2019-06-07 17:54:54 -07:00
Brian Vaughn 21bb66a8c7 Added HOC filter test 2019-06-07 14:06:08 -07:00
Brian Vaughn 5429f651b4 Tweaks 2019-05-28 13:57:05 -07:00
Sunil Pai 388b03dd12 prettier 2019-05-28 20:24:35 +01:00
Sunil Pai c7580fcd3f Merge remote-tracking branch 'upstream/master' into act-async 2019-05-28 20:21:38 +01:00
Brian Vaughn 94bebda825 Merged master 2019-05-25 09:10:43 -07:00
Brian Vaughn d09299bf85 Cleaned up some tests 2019-05-22 08:05:34 -07:00
Brian Vaughn c6de014a9a Massively overhauled profiling data architecture 2019-05-22 06:05:25 -07:00
Brian Vaughn 7ce9f4859c Renamed Store importedProfilingData -> profilingData 2019-05-20 10:45:16 -07:00
Brian Vaughn 6fd2e72b5e Minor nits 2019-05-14 11:01:41 -07:00
Ivan Babak 76e569992b Cleanup profile export/import data types, add export/import test
Strengthened the I/O-boundary type conversion logic.

Fixed type inconsistencies uncovered by removing `any` and
by making explicit type annotations and transformations.

In particular, these were likely malformed when restored from a file:
- `commitDetails`
- `interactions`
- `initialTreeBaseDurations`

The mismatches were Map vs interleaved Array.
2019-05-13 23:59:01 -07:00
Brian Vaughn b74f3f507a Added basic tests for InspectedElementContext 2019-05-10 09:13:54 -07:00
Brian Vaughn 61ab40c15c Test utils actSuspense -> actAsync 2019-05-10 08:27:14 -07:00
Sunil Pai 7aaef6f41f reverting the rename 2019-05-10 12:18:40 +01:00
Sunil Pai 6243d19b9c pretty, witty, fine 2019-05-10 12:16:43 +01:00
Sunil Pai ae3b98f5ad rewrite test act helpers based on react/#15591
This simplifies your test helpers to loop until all timers are flushed (including the ones that get queued after updates), and works in concurrent mode. I also renamed actSuspense to actAsync to be clearer.
2019-05-10 12:13:14 +01:00
Brian Vaughn b6c135c165 Added Jest tests for OwnersListContext 2019-05-09 14:21:22 -07:00
Brian Vaughn b25d996fc4 Added profiling chart data tests 2019-05-06 13:37:06 -07:00
Brian Vaughn 705cd9b109 Added Flow types to profiling test 2019-05-06 09:44:01 -07:00
Brian Vaughn dd96b3314c Cleaned up tests a bit. Profiling test uses mock timers now. 2019-05-04 09:36:13 -07:00