Skip to content

Commit 98936a2

Browse files
authoredAug 24, 2022
docs: Update Enzyme links to use new URL (#13166)
1 parent 187566a commit 98936a2

File tree

8 files changed

+14
-13
lines changed

8 files changed

+14
-13
lines changed
 

‎CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- `[*]` [**BREAKING**] Drop support for Node v12 and v17 ([#13033](https://github.com/facebook/jest/pull/13033))
3131
- `[docs]` Fix webpack name ([#13049](https://github.com/facebook/jest/pull/13049))
3232
- `[docs]` Explicit how to set `n` for `--bail` ([#13128](https://github.com/facebook/jest/pull/13128))
33+
- `[docs]` Update Enzyme URL ([#13166](https://github.com/facebook/jest/pull/13166))
3334
- `[jest-leak-detector]` Remove support for `weak-napi` ([#13035](https://github.com/facebook/jest/pull/13035))
3435
- `[jest-snapshot]` [**BREAKING**] Require `rootDir` as argument to `SnapshotState` ([#13150](https://github.com/facebook/jest/pull/13150))
3536

‎docs/TutorialReact.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ React 16 triggers these warnings due to how it checks element types, and the moc
205205
206206
### DOM Testing
207207
208-
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](http://airbnb.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
208+
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](https://enzymejs.github.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
209209

210210
#### react-testing-library
211211

@@ -265,7 +265,7 @@ npm install --save-dev enzyme
265265
266266
If you are using a React version below 15.5.0, you will also need to install `react-addons-test-utils`.
267267
268-
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](http://airbnb.io/enzyme/docs/api/shallow.html) in this example.
268+
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](https://enzymejs.github.io/enzyme/docs/api/shallow.html) in this example.
269269
270270
```tsx title="__tests__/CheckboxWithLabel-test.js"
271271
import Enzyme, {shallow} from 'enzyme';

‎website/blog/2016-07-27-jest-14.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authorFBID: 100000023028168
77

88
One of Jest's philosophies is to provide an integrated “zero-configuration” experience. We want to make it as frictionless as possible to write good tests that are useful. We observed that when engineers are provided with ready-to-use tools, they end up writing more tests, which in turn results in stable and healthy code bases.
99

10-
One of the big open questions was how to write React tests efficiently. There are plenty of tools such as [ReactTestUtils](https://facebook.github.io/react/docs/test-utils.html) and [enzyme](http://airbnb.io/enzyme/). Both of these tools are great and are actively being used. However engineers frequently told us that they spend more time writing a test than the component itself. As a result many people stopped writing tests altogether which eventually led to instabilities. Engineers told us all they wanted was to make sure their components don't change unexpectedly.
10+
One of the big open questions was how to write React tests efficiently. There are plenty of tools such as [ReactTestUtils](https://facebook.github.io/react/docs/test-utils.html) and [enzyme](https://enzymejs.github.io/enzyme/). Both of these tools are great and are actively being used. However engineers frequently told us that they spend more time writing a test than the component itself. As a result many people stopped writing tests altogether which eventually led to instabilities. Engineers told us all they wanted was to make sure their components don't change unexpectedly.
1111

1212
<!--truncate-->
1313

‎website/versioned_docs/version-25.x/TutorialReact.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ React 16 triggers these warnings due to how it checks element types, and the moc
196196
197197
### DOM Testing
198198
199-
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](http://airbnb.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
199+
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](https://enzymejs.github.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
200200

201201
#### react-testing-library
202202

@@ -253,7 +253,7 @@ The code for this example is available at [examples/react-testing-library](https
253253
254254
You have to run `yarn add --dev enzyme` to use Enzyme. If you are using a React version below 15.5.0, you will also need to install `react-addons-test-utils`.
255255
256-
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](http://airbnb.io/enzyme/docs/api/shallow.html) in this example.
256+
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](https://enzymejs.github.io/enzyme/docs/api/shallow.html) in this example.
257257
258258
```tsx title="__tests__/CheckboxWithLabel-test.js"
259259
import React from 'react';

‎website/versioned_docs/version-26.x/TutorialReact.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ React 16 triggers these warnings due to how it checks element types, and the moc
196196
197197
### DOM Testing
198198
199-
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](http://airbnb.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
199+
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](https://enzymejs.github.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
200200

201201
#### react-testing-library
202202

@@ -253,7 +253,7 @@ The code for this example is available at [examples/react-testing-library](https
253253
254254
You have to run `yarn add --dev enzyme` to use Enzyme. If you are using a React version below 15.5.0, you will also need to install `react-addons-test-utils`.
255255
256-
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](http://airbnb.io/enzyme/docs/api/shallow.html) in this example.
256+
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](https://enzymejs.github.io/enzyme/docs/api/shallow.html) in this example.
257257
258258
```tsx title="__tests__/CheckboxWithLabel-test.js"
259259
import React from 'react';

‎website/versioned_docs/version-27.x/TutorialReact.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ React 16 triggers these warnings due to how it checks element types, and the moc
196196
197197
### DOM Testing
198198
199-
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](http://airbnb.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
199+
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](https://enzymejs.github.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
200200

201201
#### react-testing-library
202202

@@ -253,7 +253,7 @@ The code for this example is available at [examples/react-testing-library](https
253253
254254
You have to run `yarn add --dev enzyme` to use Enzyme. If you are using a React version below 15.5.0, you will also need to install `react-addons-test-utils`.
255255
256-
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](http://airbnb.io/enzyme/docs/api/shallow.html) in this example.
256+
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](https://enzymejs.github.io/enzyme/docs/api/shallow.html) in this example.
257257
258258
```tsx title="__tests__/CheckboxWithLabel-test.js"
259259
import React from 'react';

‎website/versioned_docs/version-28.0/TutorialReact.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ React 16 triggers these warnings due to how it checks element types, and the moc
205205
206206
### DOM Testing
207207
208-
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](http://airbnb.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
208+
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](https://enzymejs.github.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
209209

210210
#### react-testing-library
211211

@@ -265,7 +265,7 @@ npm install --save-dev enzyme
265265
266266
If you are using a React version below 15.5.0, you will also need to install `react-addons-test-utils`.
267267
268-
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](http://airbnb.io/enzyme/docs/api/shallow.html) in this example.
268+
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](https://enzymejs.github.io/enzyme/docs/api/shallow.html) in this example.
269269
270270
```tsx title="__tests__/CheckboxWithLabel-test.js"
271271
import Enzyme, {shallow} from 'enzyme';

‎website/versioned_docs/version-28.1/TutorialReact.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ React 16 triggers these warnings due to how it checks element types, and the moc
205205
206206
### DOM Testing
207207
208-
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](http://airbnb.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
208+
If you'd like to assert, and manipulate your rendered components you can use [react-testing-library](https://github.com/kentcdodds/react-testing-library), [Enzyme](https://enzymejs.github.io/enzyme/), or React's [TestUtils](https://reactjs.org/docs/test-utils.html). The following two examples use react-testing-library and Enzyme.
209209

210210
#### react-testing-library
211211

@@ -265,7 +265,7 @@ npm install --save-dev enzyme
265265
266266
If you are using a React version below 15.5.0, you will also need to install `react-addons-test-utils`.
267267
268-
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](http://airbnb.io/enzyme/docs/api/shallow.html) in this example.
268+
Let's rewrite the test from above using Enzyme instead of react-testing-library. We use Enzyme's [shallow renderer](https://enzymejs.github.io/enzyme/docs/api/shallow.html) in this example.
269269
270270
```tsx title="__tests__/CheckboxWithLabel-test.js"
271271
import Enzyme, {shallow} from 'enzyme';

0 commit comments

Comments
 (0)
Please sign in to comment.