Skip to content

Commit

Permalink
Fix broken docs/en links (#3507)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndresx authored and cpojer committed May 11, 2017
1 parent 6b5eb81 commit 9ec4883
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- **🏃🏽 Instant Feedback**: Failed tests run first. Fast interactive mode can switch between running all tests or only test files related to changed files.

- **📸 Snapshot Testing**: Jest can [capture snapshots](http://facebook.github.io/jest/docs/snapshot-testing.html) of React trees or other serializable values to simplify UI testing.
- **📸 Snapshot Testing**: Jest can [capture snapshots](http://facebook.github.io/jest/docs/en/snapshot-testing.html) of React trees or other serializable values to simplify UI testing.

## Getting Started

Expand Down Expand Up @@ -58,7 +58,7 @@ PASS ./sum.test.js

**You just successfully wrote your first test using Jest!**

This test used `expect` and `toBe` to test that two values were exactly identical. To learn about the other things that Jest can test, see [Using Matchers](https://facebook.github.io/jest/docs/using-matchers.html).
This test used `expect` and `toBe` to test that two values were exactly identical. To learn about the other things that Jest can test, see [Using Matchers](https://facebook.github.io/jest/docs/en/using-matchers.html).

## Running from command line

Expand All @@ -70,7 +70,7 @@ Here's how to run Jest on files matching `my-test`, using `config.json` as a con
jest my-test --notify --config=config.json
```

If you'd like to learn more about running `jest` through the command line, take a look at the [Jest CLI Options](https://facebook.github.io/jest/docs/cli.html) page.
If you'd like to learn more about running `jest` through the command line, take a look at the [Jest CLI Options](https://facebook.github.io/jest/docs/en/cli.html) page.

## Additional Configuration

Expand Down Expand Up @@ -111,7 +111,7 @@ It will not use `development` section like Babel does by default when no `NODE_E

### Using webpack

Jest can be used in projects that use [webpack](https://webpack.github.io/) to manage assets, styles, and compilation. webpack does offer some unique challenges over other tools. Refer to the [webpack guide](https://facebook.github.io/jest/docs/webpack.html) to get started.
Jest can be used in projects that use [webpack](https://webpack.github.io/) to manage assets, styles, and compilation. webpack does offer some unique challenges over other tools. Refer to the [webpack guide](https://facebook.github.io/jest/docs/en/webpack.html) to get started.

### Using TypeScript

Expand Down Expand Up @@ -145,10 +145,10 @@ then modify your `package.json` so the `jest` section looks something like:

Learn more about using Jest at http://facebook.github.io/jest

* [Getting Started](http://facebook.github.io/jest/docs/getting-started.html)
* [Guides](http://facebook.github.io/jest/docs/snapshot-testing.html)
* [API Reference](http://facebook.github.io/jest/docs/api.html)
* [Configuring Jest](http://facebook.github.io/jest/docs/configuration.html)
* [Getting Started](http://facebook.github.io/jest/docs/en/getting-started.html)
* [Guides](http://facebook.github.io/jest/docs/en/snapshot-testing.html)
* [API Reference](http://facebook.github.io/jest/docs/en/api.html)
* [Configuring Jest](http://facebook.github.io/jest/docs/en/configuration.html)

## Contributing

Expand Down
10 changes: 5 additions & 5 deletions docs/en/MoreResources.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ By now you should have a good idea of how Jest can make it easy to test your app

### Browse the docs

- Learn about [Snapshot Testing](/jest/docs/snapshot-testing.html), [Mock Functions](/jest/docs/mock-functions.html), and more in our in-depth guides.
- Migrate your existing tests to Jest by following our [migration guide](https://facebook.github.io/jest/docs/migration-guide.html).
- Learn how to [configure Jest](/jest/docs/configuration.html).
- Look at the full [API Reference](/jest/docs/api.html).
- [Troubleshoot](/jest/docs/troubleshooting.html) problems with Jest.
- Learn about [Snapshot Testing](/jest/docs/en/snapshot-testing.html), [Mock Functions](/jest/docs/en/mock-functions.html), and more in our in-depth guides.
- Migrate your existing tests to Jest by following our [migration guide](https://facebook.github.io/jest/docs/en/migration-guide.html).
- Learn how to [configure Jest](/jest/docs/en/configuration.html).
- Look at the full [API Reference](/jest/docs/en/api.html).
- [Troubleshoot](/jest/docs/en/troubleshooting.html) problems with Jest.

### Learn by example

Expand Down
4 changes: 2 additions & 2 deletions website/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"title": "Learn how to test JavaScript with "
},
"mocking": {
"content": "Powerful [mocking library](/jest/docs/mock-functions.html) for functions and modules. Mock React Native components using `jest-react-native`.",
"content": "Powerful [mocking library](/jest/docs/en/mock-functions.html) for functions and modules. Mock React Native components using `jest-react-native`.",
"title": "Powerful mocking library"
},
"parallelized": {
Expand Down Expand Up @@ -109,7 +109,7 @@
"repo": "facebook/jest",
"support": {
"browse": {
"content": "Find what you're looking for in our detailed documentation and guides.\n- Learn how to [get started](/jest/docs/getting-started.html) with Jest.\n- [Troubleshoot](/jest/docs/troubleshooting.html) problems with Jest.\n- Learn how to [configure Jest](/jest/docs/configuration.html).\n- Look at the full [API Reference](/jest/docs/api.html).\n",
"content": "Find what you're looking for in our detailed documentation and guides.\n- Learn how to [get started](/jest/docs/en/getting-started.html) with Jest.\n- [Troubleshoot](/jest/docs/en/troubleshooting.html) problems with Jest.\n- Learn how to [configure Jest](/jest/docs/en/configuration.html).\n- Look at the full [API Reference](/jest/docs/en/api.html).\n",
"title": "Browse the docs"
},
"header": {
Expand Down
2 changes: 1 addition & 1 deletion website/layout/ReferenceLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ReferenceLayout = React.createClass({
language={this.props.language}
metadata={metadata}
title="API"
root="/jest/docs/api.html"
root={'/jest/docs/' + this.props.language + '/api.html'}
layout="reference"
/>
<Container className="mainContainer referenceContainer">
Expand Down

0 comments on commit 9ec4883

Please sign in to comment.