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
-
Notifications
You must be signed in to change notification settings - Fork 2
nachogarcia/testing-react
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Workshop to learn how to test react
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published