-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jest
dependency is not added in the package.json
#4145
Comments
@Commanderk3 here is what I am getting to my side. |
@apsinghdev Does your package.json has "test": "jest" |
It does. My question is, how are you installing Jest in the project? Are you installing using |
npm |
hmm. then shouldn't be there |
it should actually but as I said I kept the package.json file just like @omsuneri edited it the last time. After again doing an : Try installing it again, it should work then. |
I will be adding all the setup guide for test in a readme soon @apsinghdev @Commanderk3 so no one will get confused while setting up the jest |
This is what I am telling. This extra step of installing |
@apsinghdev once there is required to install the jest while setting up then I don't think so |
I didn't get it. do you mean adding instructions in readme file of installing |
@apsinghdev yess to guide to use testing |
Adding instructions on how to run tests is important, but this approach defeats the purpose of the |
@apsinghdev I ll try to figure out the best solution for this soon till then we should rely on the same what we are doing. |
@omsuneri @Commanderk3 Please don't push unfinished work. Running I guess @walterbender will also agree on the point that we have to implement the test iteratively. We can write unit tests for files without many advanced configs and later on, can add more things when we feel the need of it. |
@apsinghdev can you please summarise like what need to be changed |
@apsinghdev Got it ! The recent test file is actually a collaborative work. So I pushed my part. But I will keep that in mind. |
Actually I was writing a test file for platform style and that requires these modules to be exported to run that's the reason for config.js |
@Commanderk3 @omsuneri Currently, I am fixing this dependency error and removing the configs we don't need. Let's lay a clear plan for it in tomorrow's meeting |
@apsinghdev yaa that's might be the better way to resolve |
That sounds great sir. Also pardon me if I messed up real bad. I look forward to meeting you. 👍 |
You don't need to sorry for this. Just be a little cautious before pushing code. Tests are written nicely. |
@apsinghdev might be because of me too :/ |
@apsinghdev i think you must close it as the issue is solved |
Yeah, make sense. |
Yuppp. 😊 |
@walterbender I guess @Commanderk3 has mistakenly removed the
jest
dependency from thepackage.json
file. This results in other contributors not havingjest
in their local development environment to run tests.Originally posted by @apsinghdev in #4132 (comment)
The text was updated successfully, but these errors were encountered: