Question: flow + jest
See original GitHub issueDo someone have a quick idea how to force flow-typed
to install the definitions of jest
? I do not see this mentioned in the README, and as jest
is not a dependency of my project flow-typed install
does not help much.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:5
Top Results From Across the Web
What's the right way to write Jest tests verified with Flow?
5 Answers 5 · 1.Install flow to your project. If you use create-reat-app, here is a guide for this step. yarn add -D...
Read more >Running Jest tests with Flow typed Javascript files
This will be a simple tutorial about running Jest tests with Flow typed Javascript files in NodeJS project. Problem Recently I've started…
Read more >Jest Tutorial for Beginners: Getting Started With JavaScript ...
Learn the basics of testing JavaScript with this Jest tutorial for beginners! ... The most common question is "How do I know what...
Read more >Testing with Jest - Expo Documentation
Learn how to set up and configure the jest-expo package to write unit tests and snapshot tests for a ... You can also...
Read more >Wire Service Jest Test - Config Object Empty so filterFn not ...
This is the problem. I'm not sure what controls the flow to the update(config) function but essentially I need to ensure that this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the issue here is there is no way for flow-typed to install the dependencies of react-scripts which is where jest is pulled in from. This could be alleviated if there was a script added that did this like
npm run flow-typed
. However it seems that the current thinking is to only have a very limited number of npm scripts included with create-react-app. Would be nice to have a solution to where we didn’t have to include dependencies we wanted flow types for twice. Once in our own project dependencies and once by react-scripts.@mcjohnalds
It’s better to have a
peerDependency
in yourpackage.json
:Then
flow-typed update --skip