Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.28 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.28 KB

Jest Unit Testing Examples

Welcome to the world of Jest testing!

Our mission is to break you into this world gently. So let's begin...

Pre-requisites

Download

Just use git to clone the ssh version:

git clone [email protected]:jhbsk/jest-unit-testing-examples.git

Or use git to clone the https version:

git clone https://github.com/jhbsk/jest-unit-testing-examples.git

Or download the .zip archive and unzip it to the folder jest-unit-testing-examples:

https://github.com/jhbsk/jest-unit-testing-examples/archive/master.zip

Installation

On the command-line or Terminal, navigate to the root of the directory which you downloaded and run:

  • If you have npm: npm install
  • If you have yarn: yarn install

Running tests

Here are a few commands you should now be able to run:

  • Run Jest tests once: npm test or yarn test
  • Run Jest in watch mode (great for TDD): npm run test:watch or yarn test:watch