Skip to content

Commit

Permalink
Fix broken link to React tests and re-generate documentation. (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovico Fischer authored and cpojer committed Jun 16, 2016
1 parent ce0bddf commit 8eb78b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ like
```

The
[React](https://github.com/facebook/react/tree/master/src/renderers/shared/reconciler/__tests__),
[React](https://github.com/facebook/react/tree/master/src/renderers/shared/stack/reconciler/__tests__),
[Relay](https://github.com/facebook/relay/tree/master/src/container/__tests__) and
[react-native](https://github.com/facebook/react-native/tree/master/Libraries/Animated/src/__tests__)
repositories have excellent examples of tests written by Facebook engineers.
Expand Down Expand Up @@ -285,6 +285,7 @@ just added.
- [`jest.disableAutomock()`](https://facebook.github.io/jest/docs/api.html#jest-disableautomock)
- [`jest.enableAutomock()`](https://facebook.github.io/jest/docs/api.html#jest-enableautomock)
- [`jest.fn(?implementation)`](https://facebook.github.io/jest/docs/api.html#jest-fn-implementation)
- [`jest.isMockFunction(fn)`](https://facebook.github.io/jest/docs/api.html#jest-ismockfunction-implementation)
- [`jest.genMockFromModule(moduleName)`](https://facebook.github.io/jest/docs/api.html#jest-genmockfrommodule-modulename)
- [`jest.mock(moduleName, ?factory)`](https://facebook.github.io/jest/docs/api.html#jest-mock-modulename-factory)
- [`jest.runAllTicks()`](https://facebook.github.io/jest/docs/api.html#jest-runallticks)
Expand Down Expand Up @@ -426,6 +427,9 @@ implementation.
console.log(returnsTrue()) // true;
```

### `jest.isMockFunction(fn)`
Determines if the given function is a mocked function.

### `jest.genMockFromModule(moduleName)`
Given the name of a module, use the automatic mocking system to generate a mocked version of the module for you.

Expand Down
2 changes: 1 addition & 1 deletion docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ like
```

The
[React](https://github.com/facebook/react/tree/master/src/renderers/shared/reconciler/__tests__),
[React](https://github.com/facebook/react/tree/master/src/renderers/shared/stack/reconciler/__tests__),
[Relay](https://github.com/facebook/relay/tree/master/src/container/__tests__) and
[react-native](https://github.com/facebook/react-native/tree/master/Libraries/Animated/src/__tests__)
repositories have excellent examples of tests written by Facebook engineers.
Expand Down

0 comments on commit 8eb78b0

Please sign in to comment.