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

Update all legacy url to jestjs.io #6622

Merged
merged 4 commits into from
Jul 4, 2018
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ about: If you have questions, please check our Discord or StackOverflow

For questions or help please see:

- [The Jest help page](https://facebook.github.io/jest/en/help.html)
- [The Jest help page](https://jestjs.io/en/help.html)
- [Our discord channel in Reactiflux](https://discord.gg/MWRhKCj)
- The [jestjs](https://stackoverflow.com/questions/tagged/jestjs) tag on [StackOverflow](https://stackoverflow.com/questions/ask)
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@

## jest 18.0.0

See https://facebook.github.io/jest/blog/2016/12/15/2016-in-jest.html
See https://jestjs.io/blog/2016/12/15/2016-in-jest.html

- The testResultsProcessor function is now required to return the modified results.
- Removed `pit` and `mockImpl`. Use `it` or `mockImplementation` instead.
Expand Down Expand Up @@ -1056,7 +1056,7 @@ See https://facebook.github.io/jest/blog/2016/12/15/2016-in-jest.html

## jest 15.0.0

- See https://facebook.github.io/jest/blog/2016/09/01/jest-15.html
- See https://jestjs.io/blog/2016/09/01/jest-15.html
- Jest by default now also recognizes files ending in `.spec.js` and `.test.js` as test files.
- Completely replaced most Jasmine matchers with new Jest matchers.
- Rewrote Jest's CLI output for test failures and summaries.
Expand Down
2 changes: 1 addition & 1 deletion docs/MoreResources.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ You will find a number of example test cases in the [`examples`](https://github.

Ask questions and find answers from other Jest users like you. [Reactiflux](http://www.reactiflux.com/) is a Discord chat where a lot of Jest discussion happens. Check out the [#jest](https://discord.gg/MWRhKCj) channel.

Follow the [Jest Twitter account](https://twitter.com/fbjest) and [blog](/jest/blog/) to find out what's happening in the world of Jest.
Follow the [Jest Twitter account](https://twitter.com/fbjest) and [blog](/blog/) to find out what's happening in the world of Jest.
2 changes: 1 addition & 1 deletion docs/SnapshotTesting.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports[`renders correctly 1`] = `

The snapshot artifact should be committed alongside code changes, and reviewed as part of your code review process. Jest uses [pretty-format](https://github.com/facebook/jest/tree/master/packages/pretty-format) to make snapshots human-readable during code review. On subsequent test runs Jest will simply compare the rendered output with the previous snapshot. If they match, the test will pass. If they don't match, either the test runner found a bug in your code that should be fixed, or the implementation has changed and the snapshot needs to be updated.

More information on how snapshot testing works and why we built it can be found on the [release blog post](https://facebook.github.io/jest/blog/2016/07/27/jest-14.html). We recommend reading [this blog post](http://benmccormick.org/2016/09/19/testing-with-jest-snapshots-first-impressions/) to get a good sense of when you should use snapshot testing. We also recommend watching this [egghead video](https://egghead.io/lessons/javascript-use-jest-s-snapshot-testing-feature?pl=testing-javascript-with-jest-a36c4074) on Snapshot Testing with Jest.
More information on how snapshot testing works and why we built it can be found on the [release blog post](https://jestjs.io/blog/2016/07/27/jest-14.html). We recommend reading [this blog post](http://benmccormick.org/2016/09/19/testing-with-jest-snapshots-first-impressions/) to get a good sense of when you should use snapshot testing. We also recommend watching this [egghead video](https://egghead.io/lessons/javascript-use-jest-s-snapshot-testing-feature?pl=testing-javascript-with-jest-a36c4074) on Snapshot Testing with Jest.

### Updating Snapshots

Expand Down
4 changes: 2 additions & 2 deletions docs/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,12 @@ yarn test --maxWorkers=4

## Compatibility issues

Jest takes advantage of new features added to Node 6. We recommend that you upgrade to the latest stable release of Node. The minimum supported version is `v6.0.0`. Versions `0.x.x` and `4.x.x` are not supported because the `jsdom` version used in Jest doesn't support Node 4. However, if you need to run Jest on Node 4, you can use the `testEnvironment` config to use a [custom environment](https://facebook.github.io/jest/docs/en/configuration.html#testenvironment-string) that supports Node 4, such as [`jest-environment-node`](https://yarnpkg.com/en/package/jest-environment-node).
Jest takes advantage of new features added to Node 6. We recommend that you upgrade to the latest stable release of Node. The minimum supported version is `v6.0.0`. Versions `0.x.x` and `4.x.x` are not supported because the `jsdom` version used in Jest doesn't support Node 4. However, if you need to run Jest on Node 4, you can use the `testEnvironment` config to use a [custom environment](https://jestjs.io/docs/en/configuration.html#testenvironment-string) that supports Node 4, such as [`jest-environment-node`](https://yarnpkg.com/en/package/jest-environment-node).

## `coveragePathIgnorePatterns` seems to not have any effect.

Make sure you are not using the `babel-plugin-istanbul` plugin. Jest wraps Istanbul, and therefore also tells Istanbul what files to instrument with coverage collection. When using `babel-plugin-istanbul`, every file that is processed by Babel will have coverage collection code, hence it is not being ignored by `coveragePathIgnorePatterns`.

## Still unresolved?

See [Help](/jest/help.html).
See [Help](/help.html).
2 changes: 1 addition & 1 deletion e2e/__tests__/__snapshots__/custom_reporters.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ exports[`Custom Reporters Integration invalid format for adding reporters 1`] =
]

Configuration Documentation:
https://facebook.github.io/jest/docs/configuration.html
https://jestjs.io/docs/configuration.html

"
`;
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/deprecated_cli_options.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ it('Prints deprecation warnings for CLI flags', () => {
Please update your configuration.

CLI Options Documentation:
https://facebook.github.io/jest/docs/en/cli.html`);
https://jestjs.io/docs/en/cli.html`);
});
2 changes: 1 addition & 1 deletion packages/expect/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# expect

This package exports the `expect` function used in [Jest](https://facebook.github.io/jest/). You can find its documentation [on Jest's website](https://facebook.github.io/jest/docs/en/expect.html).
This package exports the `expect` function used in [Jest](https://jestjs.io/). You can find its documentation [on Jest's website](https://jestjs.io/docs/en/expect.html).
4 changes: 2 additions & 2 deletions packages/jest-changed-files/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Get the list of files and repos that have changed since the last commit.

#### Parameters

roots: Array of string paths gathered from [jest roots](https://facebook.github.io/jest/docs/configuration.html#roots-array-string).
roots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration.html#roots-array-string).

options: Object literal with keys

Expand All @@ -29,7 +29,7 @@ Get a set of git and hg repositories.

#### Parameters

roots: Array of string paths gathered from [jest roots](https://facebook.github.io/jest/docs/configuration.html#roots-array-string).
roots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration.html#roots-array-string).

## Usage

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-cli/src/cli/args.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const check = (argv: Argv) => {

export const usage =
'Usage: $0 [--config=<pathToConfigFile>] [TestPathPattern]';
export const docs = 'Documentation: https://facebook.github.io/jest/';
export const docs = 'Documentation: https://jestjs.io/';

export const options = {
all: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Object {

exports[`init project with package.json and no jest config all questions answered with answer: "No" should return the default configuration (an empty config) 1`] = `
"// For a detailed explanation regarding each configuration property, visit:
// https://facebook.github.io/jest/docs/en/configuration.html
// https://jestjs.io/docs/en/configuration.html

module.exports = {
// All imported modules in your tests should be mocked automatically
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-cli/src/lib/init/generate_config_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const generateConfigFile = (results: {[string]: boolean}): string => {

return (
'// For a detailed explanation regarding each configuration property, visit:\n' +
'// https://facebook.github.io/jest/docs/en/configuration.html\n\n' +
'// https://jestjs.io/docs/en/configuration.html\n\n' +
'module.exports = {\n' +
properties.join('\n') +
'};\n'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`Upgrade help logs a warning when \`scriptPreprocessor\` and/or \`prepro
<yellow> Please update your configuration.</>
<yellow></>
<yellow> <bold>Configuration Documentation:</></>
<yellow> https://facebook.github.io/jest/docs/configuration.html</>
<yellow> https://jestjs.io/docs/configuration.html</>
<yellow></>"
`;

Expand All @@ -23,7 +23,7 @@ exports[`preset throws when preset not found 1`] = `
<red> Preset <bold>doesnt-exist</> not found.</>
<red></>
<red> <bold>Configuration Documentation:</></>
<red> https://facebook.github.io/jest/docs/configuration.html</>
<red> https://jestjs.io/docs/configuration.html</>
<red></>"
`;

Expand All @@ -33,7 +33,7 @@ exports[`rootDir throws if the options is missing a rootDir property 1`] = `
<red> Configuration option <bold>rootDir</> must be specified.</>
<red></>
<red> <bold>Configuration Documentation:</></>
<red> https://facebook.github.io/jest/docs/configuration.html</>
<red> https://jestjs.io/docs/configuration.html</>
<red></>"
`;

Expand All @@ -43,7 +43,7 @@ exports[`testEnvironment throws on invalid environment names 1`] = `
<red> Test environment <bold>phantom</> cannot be found. Make sure the <bold>testEnvironment</> configuration option points to an existing node module.</>
<red></>
<red> <bold>Configuration Documentation:</></>
<red> https://facebook.github.io/jest/docs/configuration.html</>
<red> https://jestjs.io/docs/configuration.html</>
<red></>"
`;

Expand All @@ -53,7 +53,7 @@ exports[`testMatch throws if testRegex and testMatch are both specified 1`] = `
<red> Configuration options <bold>testMatch</> and <bold>testRegex</> cannot be used together.</>
<red></>
<red> <bold>Configuration Documentation:</></>
<red> https://facebook.github.io/jest/docs/configuration.html</>
<red> https://jestjs.io/docs/configuration.html</>
<red></>"
`;

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const BULLET: string = chalk.bold('\u25cf ');
export const DOCUMENTATION_NOTE = ` ${chalk.bold(
'Configuration Documentation:',
)}
https://facebook.github.io/jest/docs/configuration.html
https://jestjs.io/docs/configuration.html
`;

const createValidationError = (message: string) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-each/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[![version](https://img.shields.io/npm/v/jest-each.svg?style=flat-square)](https://www.npmjs.com/package/jest-each) [![downloads](https://img.shields.io/npm/dm/jest-each.svg?style=flat-square)](http://npm-stat.com/charts.html?package=jest-each&from=2017-03-21) [![MIT License](https://img.shields.io/npm/l/jest-each.svg?style=flat-square)](https://github.com/facebook/jest/blob/master/LICENSE)

A parameterised testing library for [Jest](https://facebook.github.io/jest/) inspired by [mocha-each](https://github.com/ryym/mocha-each).
A parameterised testing library for [Jest](https://jestjs.io/) inspired by [mocha-each](https://github.com/ryym/mocha-each).

jest-each allows you to provide multiple arguments to your `test`/`describe` which results in the test/suite being run once per row of parameters.

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-editor-support/src/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {createProcess} from './Process';
// settings object will be in memory.

// Ideally anything you care about adding should have a default in
// the constructor see https://facebook.github.io/jest/docs/configuration.html
// the constructor see https://jestjs.io/docs/configuration.html
// for full deets

// For now, this is all we care about inside the config
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ${DOT}If you simply want to mock your non-JS modules (e.g. binary assets) you ca
)} config option.

You'll find more details and examples of these config options in the docs:
${chalk.cyan('https://facebook.github.io/jest/docs/en/configuration.html')}
${chalk.cyan('https://jestjs.io/docs/en/configuration.html')}

${chalk.bold.red('Details:')}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`fails for multiple unknown options 1`] = `
<red> <bold>[\\"jest\\", \\"test\\"]</></>
<red></>
<red> <bold>CLI Options Documentation</>:</>
<red> https://facebook.github.io/jest/docs/en/cli.html</>
<red> https://jestjs.io/docs/en/cli.html</>
<red></>"
`;

Expand All @@ -17,6 +17,6 @@ exports[`fails for unknown option 1`] = `
<red> Unrecognized option <bold>\\"unknown\\"</>.</>
<red></>
<red> <bold>CLI Options Documentation</>:</>
<red> https://facebook.github.io/jest/docs/en/cli.html</>
<red> https://jestjs.io/docs/en/cli.html</>
<red></>"
`;
4 changes: 2 additions & 2 deletions packages/jest-validate/src/validate_cli_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import defaultConfig from './default_config';

const BULLET: string = chalk.bold('\u25cf');
export const DOCUMENTATION_NOTE = ` ${chalk.bold('CLI Options Documentation:')}
https://facebook.github.io/jest/docs/en/cli.html
https://jestjs.io/docs/en/cli.html
`;

const createCLIValidationError = (
Expand All @@ -27,7 +27,7 @@ const createCLIValidationError = (
let message;
const comment =
` ${chalk.bold('CLI Options Documentation')}:\n` +
` https://facebook.github.io/jest/docs/en/cli.html\n`;
` https://jestjs.io/docs/en/cli.html\n`;

if (unrecognizedOptions.length === 1) {
const unrecognized = unrecognizedOptions[0];
Expand Down
4 changes: 2 additions & 2 deletions website/blog/2016-07-27-jest-14.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ If we change the address the Link component in our example is pointing to, Jest

![snapshot-testing](/img/blog/snapshot.png)

Now you know that you either need to accept the changes with `jest -u`, or fix the component if the changes were unintentional. To try out this functionality, please clone the [snapshot example](https://github.com/facebook/jest/tree/master/examples/snapshot), modify the Link component and run Jest. We updated the [React Tutorial](/jest/docs/tutorial-react.html) with a new guide for snapshot testing.
Now you know that you either need to accept the changes with `jest -u`, or fix the component if the changes were unintentional. To try out this functionality, please clone the [snapshot example](https://github.com/facebook/jest/tree/master/examples/snapshot), modify the Link component and run Jest. We updated the [React Tutorial](/docs/tutorial-react.html) with a new guide for snapshot testing.

This feature was built by [Ben Alpert](https://twitter.com/soprano) and [Cristian Carlesso](https://twitter.com/kentaromiura).

Expand All @@ -59,7 +59,7 @@ You can start using Jest with react-native by running `yarn add --dev jest-react
}
```

- [Tutorial and setup guide](/jest/docs/tutorial-react-native.html#content)
- [Tutorial and setup guide](/docs/tutorial-react-native.html#content)
- [Example project](https://github.com/facebook/jest/tree/master/examples/react-native)
- [Example pull request for _snowflake_](https://github.com/bartonhammond/snowflake/pull/110), a popular react-native open source library.

Expand Down
2 changes: 1 addition & 1 deletion website/blog/2016-09-01-jest-15.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authorFBID: 100000023028168

We spent the past year making Jest [faster](http://facebook.github.io/jest/blog/2016/03/11/javascript-unit-testing-performance.html), [easier to configure](http://facebook.github.io/jest/blog/2016/04/12/jest-11.html), [added tons of features](http://facebook.github.io/jest/blog/2016/06/22/jest-13.html) and built [snapshot testing](http://facebook.github.io/jest/blog/2016/07/27/jest-14.html). However, there were two areas where we invested very little: the CLI output and user experience. With Jest 15 we are changing the framework radically to make it easier to use both for beginners and experienced users. We are excited that our investment in Jest is now paying off: we can move fast and improve the framework for Facebook and the open source community at light-speed. Jest's goal is to come with batteries included and to require as little configuration as necessary. We recently got a chance to explain our philosophy on a [create-react-app issue](https://github.com/facebookincubator/create-react-app/pull/250#issuecomment-237098619).

The most important change to talk about is a set of [new defaults](https://github.com/facebook/jest/pull/1511). If you are an existing Jest user you will very likely need to update your configuration for Jest 15. In most cases it will simplify your setup and Jest will provide useful error messages during the upgrade. All of the new defaults can be disabled to suit your needs, but we still consider the disabled features critical for Jest in certain situations and will continue to use and support them at Facebook long-term. Our [API documentation](https://facebook.github.io/jest/docs/api.html) was also completely rewritten to reflect these changes. [This pull request for React](https://github.com/facebook/react/pull/7625/files) highlights some of the changes necessary for existing projects.
The most important change to talk about is a set of [new defaults](https://github.com/facebook/jest/pull/1511). If you are an existing Jest user you will very likely need to update your configuration for Jest 15. In most cases it will simplify your setup and Jest will provide useful error messages during the upgrade. All of the new defaults can be disabled to suit your needs, but we still consider the disabled features critical for Jest in certain situations and will continue to use and support them at Facebook long-term. Our [API documentation](https://jestjs.io/docs/api.html) was also completely rewritten to reflect these changes. [This pull request for React](https://github.com/facebook/react/pull/7625/files) highlights some of the changes necessary for existing projects.

<!--truncate-->

Expand Down
2 changes: 1 addition & 1 deletion website/blog/2016-12-15-2016-in-jest.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The newly created [react-test-renderer](https://yarnpkg.com/en/package/react-tes

The [pretty-format](https://github.com/facebook/jest/tree/master/packages/pretty-format) project was rewritten with performance in mind to drive Jest's snapshot feature, was recently merged into Jest's monorepo and is also helpful in other [test runners](https://github.com/avajs/ava/pull/1154). Nowadays Jest is much more about collecting different ideas and solutions to testing than it is about one specific implementation of a test framework.

I'd like to deeply thank all the people that have [contributed to Jest this year](https://github.com/facebook/jest/graphs/contributors?from=2016-01-01&to=2016-12-14&type=c), both from the open source community and at Facebook: Dmitrii Abramov, Cristian Carlesso, Dan Abramov, Daniel Lo Nigro, Maxim Derbin, Evan Scott, Forbes Lindesay, Keyan Zhang and 60 more people. We'd also like to welcome [Michał Pierzchała (@thymikee)](https://twitter.com/thymikee) as first official external contributor to Jest. He's been doing a great job managing the issues and PRs on the repo. If you'd like to start contributing to Jest, we have a bunch of [good first tasks](https://github.com/facebook/jest/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+bug%22) and we are always happy to help on our [discord channel](https://facebook.github.io/jest/support.html).
I'd like to deeply thank all the people that have [contributed to Jest this year](https://github.com/facebook/jest/graphs/contributors?from=2016-01-01&to=2016-12-14&type=c), both from the open source community and at Facebook: Dmitrii Abramov, Cristian Carlesso, Dan Abramov, Daniel Lo Nigro, Maxim Derbin, Evan Scott, Forbes Lindesay, Keyan Zhang and 60 more people. We'd also like to welcome [Michał Pierzchała (@thymikee)](https://twitter.com/thymikee) as first official external contributor to Jest. He's been doing a great job managing the issues and PRs on the repo. If you'd like to start contributing to Jest, we have a bunch of [good first tasks](https://github.com/facebook/jest/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+bug%22) and we are always happy to help on our [discord channel](https://jestjs.io/support.html).

## [repl.it](http://repl.it/) with Jest integration

Expand Down
Loading