kentcdodds / testing-workshop

A workshop for learning how to test JavaScript applications
http://git.io/testing-workshop
1.36k stars 708 forks source link

Test suite failed to run #113

Closed dewaleolaoye closed 3 years ago

dewaleolaoye commented 4 years ago

Environment info:

Problem description:

After cloning the repo, I cd into testing-worshop and run npm run setup --silent

I took simple react test exercise and run npm run test:react and got this error

Test failed

Suggested solution:

rosen777 commented 4 years ago

I was getting the same issue with the expected suite failed to run for 'syntax-dynamic-import', the first time I ran npm run setup --silent as well. The way in which I resolved is was to exit the test suite and run npm run setup --silent again. Hope this helps.

ggofron commented 4 years ago

Try to use older version of node with nvm, 8.9.4 should be fine. Remember it's an old workshop with many deprecated dependencies, you probably had some errors while installing and syntax-dynamic-import was not installed.