Project for trying the out the Jest test runner.
Clone the repository into your local computer.
First you'll have to install the newest version of Node. Install all packages:
$ npm install
Then from the console in the project repository install Jest using Yarn:
yarn add --dev jest
or npm:
npm install --save-dev jest
Note: Jest documentation uses yarn commands, but npm will also work. You can compare yarn and npm commands in the yarn docs, here.
To install Babel required dependencies via yarn:
yarn add --dev babel-jest @babel/core @babel/preset-env
Configure Babel to target your current version of Node by creating a babel.config.js file in the root of your project:
// babel.config.js
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
};
From the console in project repository:
yarn test
or npm:
npm run test
- JavaScript - Programming language used
- VS Code - The code editor used
👤 Vinicius Campos Carvalho
- Github: @kazumaki
- Twitter: @iKazumaki
- Linkedin: Vinicius Campos Carvalho
- Email: vcampos.pitangui@gmail.com
👤 Jaak Kivinukk
- Github: @Jaakal
- Twitter: @JKivinukk
- Linkedin: Jaak Kivinukk
- Email: jaak.kivinukk@gmail.com
This project is licensed under the MIT License - see the LICENSE file for details