https://github.com/tidbitsjs/learn-jest
https://github.com/tidbitsjs/learn-jest
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tidbitsjs/learn-jest
- Owner: TidbitsJS
- Created: 2022-03-28T18:23:29.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-10T17:49:37.000Z (about 4 years ago)
- Last Synced: 2025-02-13T23:15:45.340Z (over 1 year ago)
- Language: JavaScript
- Size: 1.56 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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.