Skip to content
This repository has been archived by the owner on Jul 26, 2019. It is now read-only.

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
idmontie committed Feb 23, 2016
1 parent 2f58ca9 commit 805c670
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ React Cortex provides utility functions for you to test your React components.

Here is an example using Mocha:

```
```js
import React from 'react';
import {expect} from 'chai';
const {describe, it} = global;
Expand Down Expand Up @@ -59,13 +59,13 @@ describe('A Program Component', () => {

If you are working on a large visual change, you can force new screenshots to be generated without running assertions by using environment variables in the command line:

```
```sh
env UPDATE_SNAPSHOTS=1 npm run testonly
```

Or by passing in an updateSnapshots option:

```
```js
var differ = new Differ({
component: <Program program={program} />,
componentName: 'program',
Expand All @@ -74,4 +74,12 @@ var differ = new Differ({
done, // Used when updating screenshots
updateSnapshots: true
});
```
```

# Development

We have a build script to transpile the ES2015 code to ES2013 code.

```sh
npm run build
```

0 comments on commit 805c670

Please sign in to comment.