All Projects → kentcdodds → React Jest Workshop

kentcdodds / React Jest Workshop

Licence: mit

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to React Jest Workshop

React Performance
Let's make our apps fast ⚡
Stars: ✭ 1,035 (+436.27%)
Mutual labels:  kcd-edu
Advanced React Patterns V2
Created with CodeSandbox
Stars: ✭ 1,495 (+674.61%)
Mutual labels:  kcd-edu
Dom Testing Library With Anything
Use DOM Testing Library to test any JS framework on TestingJavaScript.com
Stars: ✭ 177 (-8.29%)
Mutual labels:  kcd-edu
10 Practical Js Features
Stars: ✭ 68 (-64.77%)
Mutual labels:  kcd-edu
App Dev Tools
An example of how to create and hook up App DevTools to improve your development productivity of your application
Stars: ✭ 102 (-47.15%)
Mutual labels:  kcd-edu
Modern Javascript
Get up to speed on the latest, most useful JavaScript features to level up your programming
Stars: ✭ 123 (-36.27%)
Mutual labels:  kcd-edu
React Suspense
React Suspense workshop
Stars: ✭ 491 (+154.4%)
Mutual labels:  kcd-edu
React Fundamentals
Material for my React Fundamentals Workshop
Stars: ✭ 3,247 (+1582.38%)
Mutual labels:  kcd-edu
React Hooks
Learn React Hooks! 🎣 ⚛
Stars: ✭ 1,988 (+930.05%)
Mutual labels:  kcd-edu
Bookshelf
Build a ReactJS App workshop
Stars: ✭ 2,179 (+1029.02%)
Mutual labels:  kcd-edu
Advanced React Hooks
Learn Advanced React Hooks workshop
Stars: ✭ 1,208 (+525.91%)
Mutual labels:  kcd-edu
Simply React
Stars: ✭ 101 (-47.67%)
Mutual labels:  kcd-edu
React Hooks And Suspense Egghead Playlist
This is the code for the egghead playlist "React Hooks and Suspense"
Stars: ✭ 128 (-33.68%)
Mutual labels:  kcd-edu
Advanced React Patterns V1
The course material for my advanced react patterns course on Egghead.io
Stars: ✭ 1,106 (+473.06%)
Mutual labels:  kcd-edu
Js Mocking Fundamentals
JavaScript Mocking Fundamentals on TestingJavaScript.com
Stars: ✭ 182 (-5.7%)
Mutual labels:  kcd-edu
React Testing Library Course
Test React Components with Jest and React Testing Library on TestingJavaScript.com
Stars: ✭ 699 (+262.18%)
Mutual labels:  kcd-edu
Advanced React Patterns
This is the latest advanced react patterns workshop
Stars: ✭ 1,899 (+883.94%)
Mutual labels:  kcd-edu
React Ava Workshop
🐯 A workshop repository for testing React ⚛ with AVA 🚀 --> slides
Stars: ✭ 192 (-0.52%)
Mutual labels:  kcd-edu
The Beginner S Guide To Reactjs
The beginner's Guide to ReactJS course material for Egghead.io
Stars: ✭ 185 (-4.15%)
Mutual labels:  kcd-edu
Static Testing Tools
Static Analysis Testing JavaScript Applications on TestingJavaScript.com
Stars: ✭ 141 (-26.94%)
Mutual labels:  kcd-edu

React + Jest + Enzyme = ❤️

slides-badge PRs Welcome Donate

Sponsor

Find slides here

This is a workshop for learning how to test React with the Jest testing framework and the Enzyme testing library.

Project Setup

This project assumes you have NodeJS v6 or greater installed. It's also recommended to use the yarn client (rather than npm). If you'd rather stick with npm, that's fine. Just replace yarn with npm in the instructions below and hope that things don't break 😏. You'll also need a recent version of git installed as well.

With that, run:

git clone https://github.com/kentcdodds/react-jest-workshop.git
cd react-jest-workshop
yarn run setup

If the yarn run setup script finishes without errors (don't worry about warnings) then you're good to go. Otherwise, please file an issue.

Testing Instructions

There are two directories in this project that you should be interested in:

  • exercises: Where the unfinished tests are (where you should add your tests).
  • exercises-final: Where the finished tests are (where you can reference if you get stuck).

The tests in exercises are actually all scaffolded for you. So your goal is to go through and write all the tests. Do this:

  1. Run yarn run watch:test which will start running the tests in watch mode, meaning that as you save your file, it will automatically re-run your tests so you can quickly see how you're doing.
  2. Choose a file in the exercises directory that ends in .test.js and implement the tests one-by-one.

Good luck!

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].