Jest Unit Test Scaffolder
Installation
Use the upstream install or setup path that matches your environment:
- yarn add --dev jest
- npm install --save-dev jest
- Finally, run yarn test or npm test and Jest will print this message:
- yarn create jest
Requirements and caveats from upstream:
- const sum = require('./sum');
- Configure Babel to target your current version of Node by creating a babel.config.js file in the root of your project:
Basic usage or getting-started notes:
bash
Source: https://github.com/jestjs/jest
Extracted from upstream docs: https://raw.githubusercontent.com/jestjs/jest/HEAD/README.md