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

https://github.com/softx0/jestintroduction

Beginning in core of Jest knowledge
https://github.com/softx0/jestintroduction

javascript jest

Last synced: about 2 months ago
JSON representation

Beginning in core of Jest knowledge

Awesome Lists containing this project

README

        

# Introduction to Unit test w/ Jest

## Topics

- describe scope
- it scope
- test scope

- test.todo for a test that not be defined

- Object Assignments
- Falsy and Truthy values
- Numerics test
- Floating numeric test
- strings test
- the not matchers for negation
- toMatch to test w/ regExp
- Arrays test
- Handle Exception test
- Create your own matchers for the win
- the methods for control the flow of the tests
- beforeAll
- afterAll
- beforeEach
- afterEach
- Promises test ( util for REST Services ) in three differents ways
- async/await
- Promises
- Callbacks

- Use the option from the jest cli
- coverageAll
- watchAll

### Coverage report captures

![AllFiles Coverage](src/assets/images/AllFiles-Coverage.png)

![Calculator Coverage](src/assets/images/calculator-js-coverage.png)

![Calculator not Coverage](src/assets/images/index-js-calculator-js-notCoverage.png)

![Quote Promises Coverage](src/assets/images/quote-js-coverage.png)