Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New documentation and updated website and examples. #763

Closed
wants to merge 1 commit into from

Conversation

cpojer
Copy link
Member

@cpojer cpojer commented Mar 3, 2016

This gets Jest ready for 0.9.0.

What's new?

  • Slightly refreshed look, based on the Relay website.
  • New summary of what Jest is on the website.
  • New Getting Started guide, with babel support and key feature explanation.
  • Added a troubleshooting section.
  • Updated all examples in the documentation.
  • Added all new APIs to the API docs, updated everything to use jest.fn() instead of jest.genMockFn().
  • Removed the webpack alias and coffeescript guides. Neither of them are really supported or useful at this point. We can bring back a guide later on proper webpack integration if someone in the community takes this on. The webpack-alias feature is handled by the moduleNameMapper API.
  • Added a link to the Failed to get metadata error in Jest.

See http://cpojer.github.io/jest/ for a preview.

In a follow-up I'll add a section on async testing for Promises and some more info about automocking.

3. Add the following to your `package.json`
```
Using Jest CLI v<version>, jasmine2, babel-jest
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that if I already have

"scriptPreprocessor": "<rootDir>/node_modules/babel-jest"

in my package.json, the babel-jest part will not be shown here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, you should remove this line after updating to 0.9.0 (and babel-jest 9.0.0) because it will no longer be necessary.

@cpojer cpojer force-pushed the master branch 2 times, most recently from 5b0b6cb to 7cfc7a8 Compare March 3, 2016 20:45
@cpojer
Copy link
Member Author

cpojer commented Mar 3, 2016

@facebook-github-bot import

@facebook-github-bot
Copy link
Contributor

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in 81d6697 Mar 3, 2016
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants