Skip to content

nachogarcia/testing-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npx create-react-app my-app

cd my-app

yarn install

yarn add -D enzyme enzyme-adapter-react-16 react-test-renderer

cd src

import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

configure({ adapter: new Adapter() });
  > setupTests.js

mkdir __tests__

NODE_PATH="src/" > .env

git init

About

Workshop to learn how to test react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published