Skip to content

zec4o/jest-basic-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jest Basic Tests🧦

jest

This project is a "component tests" example using JavaScript and Jest.

Features 🧪

  • JavaScript
  • Jest

Requirements 📚

Getting Started

Install the dependencies:

npm install

Run tests:

npm run test

Wanted Answer:

 PASS  tests/multiplication.test.js
 PASS  tests/circleArea.test.js
 PASS  tests/toCelsius.test.js
 PASS  tests/textFunction.test.js
 PASS  tests/circlePerimeter.test.js

Test Suites: 5 passed, 5 total
Tests:       5 passed, 5 total
Snapshots:   0 total
Time:        X s, estimated 2 s
Ran all test suites.

Watch tests while running 👨‍💻

It's also possible to watch the Jest tests while it's running:

npm run test:watch

Contributing 👨‍💻🤝

Feel free to complement/report something in pull requests. The project is ours! 🤝

About

Simple test examples using jest framework and the JSONPlaceholder fake api 🧪🧦

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published