Skip to content
/ jest Public
forked from jestjs/jest

Commit

Permalink
Website update.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Oct 3, 2016
1 parent 47fb725 commit 063828b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 6 additions & 7 deletions docs/MigrationGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ permalink: docs/migration-guide.html
next: api
---

So you want to try out Jest instead of your existing test runner. Let us help you out.
If you'd like to try out Jest with an existing codebase, there are a number of ways to convert to Jest:

- If you are using Jasmine (or the test runner that are using Jasmine), Jest should be mostly compatible and easy to migrate to.
- If you are using AVA or tape, you automatically migrate with Jest Codemods (see below).
- If you like Chai, you can upgrade to Jest and continue using Chai.
* If you are using Jasmine, or a Jasmine like API (for example [mocha](https://mochajs.org)), Jest should be mostly compatible and easy to migrate to.
* If you are using AVA or tape, you can automatically migrate with Jest Codemods (see below).
* If you like [chai](http://chaijs.com/), you can upgrade to Jest and continue using chai. However, we recommend trying out Jest's assertions and their failure messages.

### jest-codemods

### Jest Codemods

If you are using [AVA](https://github.com/avajs/ava) or [Tape](https://github.com/substack/tape), you can use the [Jest Codemods](https://github.com/skovhus/jest-codemods) to do most of the dirty migration work. It runs a code transformation on your codebase using [jscodeshift](https://github.com/facebook/jscodeshift).
If you are using [AVA](https://github.com/avajs/ava) or [Tape](https://github.com/substack/tape), you can use the third-party [jest-codemods](https://github.com/skovhus/jest-codemods) to do most of the dirty migration work. It runs a code transformation on your codebase using [jscodeshift](https://github.com/facebook/jscodeshift).

Install Jest Codemods with `npm` by running:

Expand Down
4 changes: 3 additions & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ var siteConfig = {
homepagePromos: [
<div className="pluginRowBlock">
<Button href="#getting-started">Get Started</Button>
<Button href="/jest/docs/api.html#content">API Reference</Button>
<Button href="/jest/docs/tutorial-react.html">React Testing</Button>
<Button href="/jest/docs/tutorial-react-native.html">React Native Testing</Button>
<Button href="/jest/docs/api.html">API Reference</Button>
<a className="github-button" href="https://github.com/facebook/jest" data-icon="octicon-star" data-style="mega" data-count-href="/facebook/jest/stargazers" data-count-api="/repos/facebook/jest#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star facebook/jest on GitHub">Star</a>
</div>,
],
Expand Down

0 comments on commit 063828b

Please sign in to comment.