From 60f56bf5b971833766090972422f149e04b42112 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 22 Nov 2017 13:12:37 +0000 Subject: [PATCH] Mention `yarn test-prod` in contributing guide --- content/docs/how-to-contribute.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/content/docs/how-to-contribute.md b/content/docs/how-to-contribute.md index 25aac09a..78b68b5e 100644 --- a/content/docs/how-to-contribute.md +++ b/content/docs/how-to-contribute.md @@ -82,10 +82,11 @@ The core team is monitoring for pull requests. We will review your pull request 2. Run `yarn` in the repository root. 3. If you've fixed a bug or added code that should be tested, add tests! 4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development. -5. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`). -6. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files. -7. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`). -8. If you haven't already, complete the CLA. +5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`. +6. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`). +7. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files. +8. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`). +9. If you haven't already, complete the CLA. ### Contributor License Agreement (CLA) @@ -109,6 +110,7 @@ Then, you can run several commands: * `yarn test` runs the complete test suite. * `yarn test --watch` runs an interactive test watcher. * `yarn test ` runs tests with matching filenames. +* `yarn test-prod` runs tests in the production environment. It supports all the same options as `yarn test`. * `yarn flow` runs the [Flow](https://flowtype.org/) typechecks. * `yarn build` creates a `build` folder with all the packages. * `yarn build core,dom --type=UMD` creates UMD builds of just React and ReactDOM.