Unit Testing/Jest/Install Jest
Appearance
< Unit Testing | Jest
Create a JavaScript test environment.
- Install Node.js from Node.js.
- In a new folder, create a new node package.
npm init
- Use default responses for everything except 'test command'. For 'test command', enter
jest
.
- Install Jest using:
npm install --save-dev jest
- Install the Jest command-line interface using:
npm install --save-dev jest-cli