WhatsApp-Clone-Tutorial icon indicating copy to clipboard operation
WhatsApp-Clone-Tutorial copied to clipboard

[Server Step 3.1] Given error when doing yarn test, lacking global-setup.ts

Open pjunwei95 opened this issue 5 years ago • 1 comments

Lack of tests/global-setup.ts given in the tutorial, have to navigate to github to get the code

pjunwei95 avatar Jun 05 '20 08:06 pjunwei95

As of February 2021 a couple of things went wrong in this step.

I was getting an error about jest-unit, I had to do a npm update as suggested in a similar issue about jest-junit: WhatsApp-Clone-Client-React#issue905.

Then ironically I start getting an error about jest-junit, had to run yarn add jest-junit again.

And finally it was broken because of tests/global-setup.ts is missing. In my case I just removed "globalSetup": "<rootDir>/tests/global-setup.ts" from whatsapp-clone-server/package.json.

Although the idea of tortilla.academy is awesome, I guess it's naturally difficult to keep an up to date tutorial of anything about webdev, specially relying on package managers and so many tools... :(

jacksonbenete avatar Feb 14 '21 21:02 jacksonbenete