Skip to content

Instantly share code, notes, and snippets.

Avatar
🖥️
Reacting positively to testing...

Karsten Rabe krab7191

🖥️
Reacting positively to testing...
View GitHub Profile
@natterstefan
natterstefan / README.md
Created Feb 18, 2020
Jest | Mock useState
View README.md

Jest - mock useState

When using import React, { useState } from 'react' in your components, this is how you can mock useState with jest.