An open API service indexing awesome lists of open source software.

https://github.com/tidbitsjs/learn-jest


https://github.com/tidbitsjs/learn-jest

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Learning Jest

Purpose of the project is to learn how to write tests with JavaScript Testing framework, JEST.

## Setup

Project requirements

* git
* NodeJS
* npm

To verify the installation of above, you can run this:

```shell
git --version
node --version
npm --version
```

After you've made sure to have the correct things installed, you
should be able to just run a few commands to get set up:

```shell
git clone https://github.com/TidbitsJS/Learn-Jest.git
cd Learn-Jest
npm install
```

## Running the App

To run the app, run the command:

```shell
npm run dev
```

It will run the app on local server of port 3000 by default.

To run tests, run the command:

```shell
npm run test
```

All the tests cases(successful or failed) will show up in the terminal.