Skip to content
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

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

Open
pjunwei95 opened this issue Jun 5, 2020 · 1 comment

Comments

@pjunwei95
Copy link

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

@pjunwei95 pjunwei95 changed the title [Server Step 3.1] [Server Step 3.1] Given error when doing yarn test, lacking global-setup.ts Jun 5, 2020
@jacksonbenete
Copy link

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... :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants