How to solve TypeError: environment.teardown is not a function
You shouldn't need to install jest-cli yourself. It should come out of the box.
Try the following:
- Delete package-lock.json, yarn.lock and node_modules
- Remove jest from the dependencies in package.json
- Then do
npm install
oryarn install
.
Add a fresh version of "jest-environment-jsdom" to file "package.json".