Skip to content

A React app starter template with Enzyme testing. Includes comments on React component practices.

Notifications You must be signed in to change notification settings

justinblough/react-enzyme-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Enzyme starter

This package is a starting point for using React without Redux which includes Enzyme for testing.


Getting Started

Install from source

First, clone the project:

$ git clone https://github.com/justinblough/react-enzyme-starter.git <my-project-name>
$ cd <my-project-name>

Then install dependencies and check to see it works. It is recommended that you use Yarn for deterministic installs, but npm install will work just as well.

$ yarn install    # Install project dependencies
$ yarn dev      # Compile and launch (same as `npm start`)

Open browser to http://localhost:7777

Other Commands

npm run <script> Description
dev Serves your app at localhost:7777. HMR will be enabled in development.
dist Build a production quality version of app (~/dist by default).
test Runs a single unit test with Mocha
test:watch Runs unit test and watches for changes to re-runs tests

About

A React app starter template with Enzyme testing. Includes comments on React component practices.

Resources

Stars

Watchers

Forks

Packages

No packages published