Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.02 KB

File metadata and controls

37 lines (21 loc) · 1.02 KB

testdeck-react-seed

Build Status

A seed for you to get started with @testdeck/jest and React and Babel.

The project was bootstrapped with Create React App.

It also makes use of react-app-rewired and customize-cra to enable decorators.

To run all tests

npm test

How to set this up yourself

To set this up, the following steps have been taken.

nvm install v8.15.1
npx create-react-app myapp

cd myapp
npm install --save-dev react-app-rewired customize-cra @babel/plugin-proposal-decorators @testdeck/jest

Next, create a config-overrides.js, and a .babelrc and you are done with the basics.

Now, augment src/App.test.js to make use of @testdeck/jest and everything should work.