I am currently working on Module 2 of the Foundation Certificate course. I have got to the section where I need to write a framework for Unit tests and am being guided through the steps. When viewing my dependencies in the package.json file I couldnt see jest listed, and so i added this in myself directly to the file and then pushed it to Origin.
When i try to run the suggested command in powershell (terminal on VS Code), I get an error. What am I doing wrong?
Thanks Mark. I had run the suggested command line of βnpm install -save @testing-library/react jest nock jest-junitβ to install jest among others previously, but have now tried your suggestion given in your reply. This is the list of dependencies that I have in my package.json file:
Still getting the same error when i try to run that node/modules line in a new Terminal.
I have managed to sort this issue out myself. I decided to remove my cloned repo and start all over again. This time I have been successful. I think there may have been an issue with the folder as I had two copies of the repo on my local machine and I think i was running my command lines against the wrong one.