firefox-devtools / profiler

Firefox Profiler — Web app for Firefox performance analysis
https://profiler.firefox.com
Mozilla Public License 2.0
1.18k stars 385 forks source link

Add tests for our complex flow typing #831

Open gregtatum opened 6 years ago

gregtatum commented 6 years ago

We should add some tests to make sure our typing works. My guess is that this broke in the recent Flow upgrade.

┆Issue is synchronized with this Jira Task

gregtatum commented 6 years ago

Hmm... actually never mind. I misspelled mapStateToProps, and it didn't throw errors. Looking at the type definition, it makes sense why it wouldn't.

julienw commented 6 years ago

Reopening because I believe this is still something we need. It would give us more confidence when changing these complex typings as well as when upgrading flow.

Some key things from my previous research to do this:

Things to especially check:

gregtatum commented 5 years ago

We have tests now for the connect.js function.