This project is a template Jest testing environment project ready for use.
In this project you can:
- Use ES6
importandexport - Have intellisense in VS Code for the Jest matchers.
To set up the project you need to initialise Node:
npm init -y
This will then generate the package.json file.
npm install -D @babel/preset-env jest
npm install -S @types/jest
You can simply take the babel.config.js file and add the dev and main dependencies from the package.json file to copy the project in order to run Jest in your own project.
Ensure you run npm install once you update dependencies.
If you see:
jest: command not found
Then you need to run npm install in order to install required packages.