Problems/Coding/Jest/Easy

Easy Jest

Coding problems ยท 100 total

Write basic test case

Start problem

Implement test suite

Start problem

Create describe block

Start problem

Implement it test

Start problem

Create expect assertion

Start problem

Implement toBe matcher

Start problem

Create toEqual matcher

Start problem

Implement toBeTruthy

Start problem

Create toBeFalsy

Start problem

Implement toBeNull

Start problem

Create toBeUndefined

Start problem

Implement toBeDefined

Start problem

Create toContain matcher

Start problem

Implement toHaveLength

Start problem

Create toMatch regex

Start problem

Implement toThrow

Start problem

Create beforeEach hook

Start problem

Implement afterEach hook

Start problem

Create beforeAll hook

Start problem

Implement afterAll hook

Start problem

Create test.only

Start problem

Implement test.skip

Start problem

Create test.todo

Start problem

Implement test.each

Start problem

Create mock function

Start problem

Implement jest.fn

Start problem

Create mock return value

Start problem

Implement mock implementation

Start problem

Create spy on method

Start problem

Implement jest.spyOn

Start problem

Create mock module

Start problem

Implement jest.mock

Start problem

Create manual mock

Start problem

Implement __mocks__ folder

Start problem

Create mock timers

Start problem

Implement jest.useFakeTimers

Start problem

Create advanceTimersByTime

Start problem

Implement runAllTimers

Start problem

Create clearAllTimers

Start problem

Implement snapshot testing

Start problem

Create toMatchSnapshot

Start problem

Implement inline snapshot

Start problem

Create update snapshots

Start problem

Implement async testing

Start problem

Create async/await test

Start problem

Implement Promise test

Start problem

Create callback test

Start problem

Implement done callback

Start problem

Create resolves matcher

Start problem

Implement rejects matcher

Start problem

Create test coverage

Start problem

Implement coverage report

Start problem

Create threshold config

Start problem

Implement collectCoverageFrom

Start problem

Create coverage directory

Start problem

Implement jest.config.js

Start problem

Create test environment

Start problem

Implement jsdom environment

Start problem

Create node environment

Start problem

Implement setupFiles

Start problem

Create setupFilesAfterEnv

Start problem

Implement global setup

Start problem

Create global teardown

Start problem

Implement test match patterns

Start problem

Create test path ignore

Start problem

Implement module paths

Start problem

Create module name mapper

Start problem

Implement transform

Start problem

Create babel-jest

Start problem

Implement ts-jest

Start problem

Create preset configuration

Start problem

Implement react preset

Start problem

Create vue preset

Start problem

Implement angular preset

Start problem

Create custom matcher

Start problem

Implement expect.extend

Start problem

Create assertion helper

Start problem

Implement test utilities

Start problem

Create factory functions

Start problem

Implement fixture data

Start problem

Create test builders

Start problem

Implement object mothers

Start problem

Create test data generators

Start problem

Implement faker usage

Start problem

Create mock data

Start problem

Implement stub functions

Start problem

Create test doubles

Start problem

Implement mock reset

Start problem

Create mock clear

Start problem

Implement mock restore

Start problem

Create assertion count

Start problem

Implement hasAssertions

Start problem

Create toBeGreaterThan matcher

Start problem

Implement toBeLessThan matcher

Start problem

Create toBeCloseTo matcher

Start problem

Implement toHaveProperty matcher

Start problem

Create toMatchObject matcher

Start problem

Implement toStrictEqual matcher

Start problem

Create toBeInstanceOf matcher

Start problem

Implement arrayContaining matcher

Start problem