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 all 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)
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- `[website]` Switch domain to https://jestjs.io ([#6549](https://github.com/facebook/jest/pull/6549))
- `[tests]` Improve stability of `yarn test` on Windows ([#6534](https://github.com/facebook/jest/pull/6534))
- `[*]` Transpile object shorthand into Node 4 compatible syntax ([#6582](https://github.com/facebook/jest/pull/6582))
- `[*]` Update all legacy links to jestjs.io ([#6622](https://github.com/facebook/jest/pull/6622))

## 23.2.0

Expand Down Expand Up @@ -919,7 +920,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 +1057,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 Expand Up @@ -1150,7 +1151,7 @@ See https://facebook.github.io/jest/blog/2016/12/15/2016-in-jest.html
- Added `jest-resolve` as a standalone package based on the Facebook module resolution algorithm.
- Added `jest-changed-files` as a standalone package to detect changed files in a git or hg repo.
- Added `--setupTestFrameworkFile` to cli.
- Added support for coverage thresholds. See http://facebook.github.io/jest/docs/api.html#coveragethreshold-object.
- Added support for coverage thresholds. See https://jestjs.io/docs/en/configuration#coveragethreshold-object.
- Updated to jsdom 9.0.
- Updated and improved stack trace reporting.
- Added `module.filename` and removed the invalid `module.__filename` field.
Expand Down
2 changes: 1 addition & 1 deletion docs/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ These pattern strings match against the full path. Use the `<rootDir>` string to

Example: `["<rootDir>/bower_components/", "<rootDir>/node_modules/"]`.

Sometimes it happens (especially in React Native or TypeScript projects) that 3rd party modules are published as untranspiled. Since all files inside `node_modules` are not transformed by default, Jest will not understand the code in these modules, resulting in syntax errors. To overcome this, you may use `transformIgnorePatterns` to whitelist such modules. You'll find a good example of this use case in [React Native Guide](http://facebook.github.io/jest/docs/en/tutorial-react-native.html#transformignorepatterns-customization).
Sometimes it happens (especially in React Native or TypeScript projects) that 3rd party modules are published as untranspiled. Since all files inside `node_modules` are not transformed by default, Jest will not understand the code in these modules, resulting in syntax errors. To overcome this, you may use `transformIgnorePatterns` to whitelist such modules. You'll find a good example of this use case in [React Native Guide](https://jestjs.io/docs/en/tutorial-react-native#transformignorepatterns-customization).

### `unmockedModulePathPatterns` [array<string>]

Expand Down
2 changes: 1 addition & 1 deletion docs/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ And it will generate the following snapshot:
exports[`drinking flavors throws on octopus 1`] = `"yuck, octopus flavor"`;
```

Check out [React Tree Snapshot Testing](http://facebook.github.io/jest/blog/2016/07/27/jest-14.html) for more information on snapshot testing.
Check out [React Tree Snapshot Testing](https://jestjs.io/blog/2016/07/27/jest-14.html) for more information on snapshot testing.

### `.toThrowErrorMatchingInlineSnapshot()`

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.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -269,7 +269,7 @@ Yes, all snapshot files should be committed alongside the modules they are cover

### What's the difference between snapshot testing and visual regression testing?

Snapshot testing and visual regression testing are two distinct ways of testing UIs, and they serve different purposes. Visual regression testing tools take screenshots of web pages and compare the resulting images pixel by pixel. With Snapshot testing values are serialized, stored within text files and compared using a diff algorithm. There are different trade-offs to consider and we listed the reasons why snapshot testing was built in the [Jest blog](http://facebook.github.io/jest/blog/2016/07/27/jest-14.html#why-snapshot-testing).
Snapshot testing and visual regression testing are two distinct ways of testing UIs, and they serve different purposes. Visual regression testing tools take screenshots of web pages and compare the resulting images pixel by pixel. With Snapshot testing values are serialized, stored within text files and compared using a diff algorithm. There are different trade-offs to consider and we listed the reasons why snapshot testing was built in the [Jest blog](https://jestjs.io/blog/2016/07/27/jest-14.html#why-snapshot-testing).

### Does snapshot testing substitute unit testing?

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/babel-jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ yarn add --dev babel-jest babel-core
> yarn add --dev babel-jest babel-core@^7.0.0-0 @babel/core
> ```

If you would like to write your own preprocessor, uninstall and delete babel-jest and set the [config.transform](http://facebook.github.io/jest/docs/configuration.html#transform-object-string-string) option to your preprocessor.
If you would like to write your own preprocessor, uninstall and delete babel-jest and set the [config.transform](https://jestjs.io/docs/configuration#transform-object-string-string) option to your preprocessor.

## Setup

Expand Down
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
4 changes: 2 additions & 2 deletions packages/jest-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

- **🏃🏽 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](https://jestjs.io/docs/snapshot-testing.html) of React trees or other serializable values to simplify UI testing.

Read More: http://facebook.github.io/jest/
Read More: https://jestjs.io/
2 changes: 1 addition & 1 deletion packages/jest-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"homepage": "http://jestjs.io/",
"homepage": "https://jestjs.io/",
"license": "MIT",
"keywords": [
"ava",
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
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ class Runtime {
if (mockMetadata == null) {
throw new Error(
`Failed to get mock metadata: ${modulePath}\n\n` +
`See: http://jestjs.io/docs/manual-mocks.html#content`,
`See: https://jestjs.io/docs/manual-mocks.html#content`,
);
}
this._mockMetaDataCache[modulePath] = mockMetadata;
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
2 changes: 1 addition & 1 deletion packages/jest-watcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"homepage": "http://facebook.github.io/jest/",
"homepage": "https://jestjs.io/",
"license": "MIT"
}
4 changes: 2 additions & 2 deletions packages/jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

- **🏃🏽 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](https://jestjs.io/docs/snapshot-testing.html) of React trees or other serializable values to simplify UI testing.

Read More: http://facebook.github.io/jest/
Read More: https://jestjs.io/
2 changes: 1 addition & 1 deletion packages/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"type": "git",
"url": "https://github.com/facebook/jest"
},
"homepage": "http://jestjs.io/",
"homepage": "https://jestjs.io/",
"license": "MIT",
"keywords": [
"ava",
Expand Down
Loading