Skip to content

Meeth-webdev/Jest-Practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jest Practice

A collection of small test examples I wrote while learning Jest — covering matchers, mock functions, async testing, setup/teardown, and more.

Purpose

This repository is a sandbox for learning and experimenting with Jest.
It contains examples of:

  • Writing simple unit tests

  • Using different Jest matchers

  • Working with mock functions

  • Handling asynchronous code in tests

  • Using setup and teardown methods (beforeEach, afterEach, etc.)

  • Topics Covered

  • Basic matchers (toBe, toEqual, toContain, etc.)

  • Mock functions and spies

  • Async code testing (async/await, .resolves / .rejects)

  • Setup and teardown hooks

  • Testing exceptions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •