Skip to content

Commit b06750b

Browse files
lencioniljharb
andcommitted
[meta] Replace airbnb.io with enzymejs.github.io; update repo URLs
This is the new location of these docs. Co-authored-by: Joe Lencioni <[email protected]> Co-authored-by: Jordan Harband <[email protected]>
1 parent c62cc41 commit b06750b

File tree

32 files changed

+475
-303
lines changed

32 files changed

+475
-303
lines changed

CHANGELOG.md

+233-233
Large diffs are not rendered by default.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ After forking enzyme to your own github org, do the following steps to get start
1212

1313
```bash
1414
# clone your fork to your local machine
15-
git clone https://github.com/airbnb/enzyme.git
15+
git clone https://github.com/enzymejs/enzyme.git
1616

1717
# step into local repo
1818
cd enzyme

INTHEWILD.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Please use [pull requests](https://github.com/airbnb/enzyme/pull/new/master) to add your organization and/or project to this document!
1+
Please use [pull requests](https://github.com/enzymejs/enzyme/pull/new/master) to add your organization and/or project to this document!
22

33
Organizations
44
----------

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
The MIT License (MIT)
33

4-
Copyright (c) 2015 Airbnb, Inc.
4+
Copyright (c) 2015 Airbnb, Inc. and contributors
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Enzyme
22
=======
33

4-
[![Join the chat at https://gitter.im/airbnb/enzyme](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/airbnb/enzyme?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4+
[![Join the chat at https://gitter.im/enzymejs/enzyme](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/enzymejs/enzyme?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
55

6-
[![npm Version](https://img.shields.io/npm/v/enzyme.svg)](https://www.npmjs.com/package/enzyme) [![License](https://img.shields.io/npm/l/enzyme.svg)](https://github.com/airbnb/enzyme/blob/master/LICENSE.md) [![Build Status](https://travis-ci.org/airbnb/enzyme.svg)](https://travis-ci.org/airbnb/enzyme) [![Coverage Status](https://coveralls.io/repos/airbnb/enzyme/badge.svg?branch=master&service=github)](https://coveralls.io/github/airbnb/enzyme?branch=master)
6+
[![npm Version](https://img.shields.io/npm/v/enzyme.svg)](https://www.npmjs.com/package/enzyme) [![License](https://img.shields.io/npm/l/enzyme.svg)](https://github.com/enzymejs/enzyme/blob/master/LICENSE.md) [![Build Status](https://travis-ci.org/enzymejs/enzyme.svg)](https://travis-ci.org/enzymejs/enzyme) [![Coverage Status](https://coveralls.io/repos/enzymejs/enzyme/badge.svg?branch=master&service=github)](https://coveralls.io/github/enzymejs/enzyme?branch=master)
77

88

99
Enzyme is a JavaScript Testing utility for React that makes it easier to test your React Components' output.
@@ -221,15 +221,15 @@ Read the full [API Documentation](/docs/api/render.md)
221221

222222
### React Hooks support
223223

224-
Enzyme supports [react hooks](https://reactjs.org/docs/hooks-intro.html) with some limitations in [`.shallow()`](https://airbnb.io/enzyme/docs/api/shallow.html) due to upstream issues in React's shallow renderer:
224+
Enzyme supports [react hooks](https://reactjs.org/docs/hooks-intro.html) with some limitations in [`.shallow()`](https://enzymejs.github.io/enzyme/docs/api/shallow.html) due to upstream issues in React's shallow renderer:
225225

226226
* `useEffect()` and `useLayoutEffect()` don't get called in the React shallow renderer. [Related issue](https://github.com/facebook/react/issues/15275)
227227

228228
* `useCallback()` doesn't memoize callback in React shallow renderer. [Related issue](https://github.com/facebook/react/issues/15774)
229229

230230
#### [`ReactTestUtils.act()`](https://reactjs.org/docs/test-utils.html#act) wrap
231231

232-
If you're using React 16.8+ and `.mount()`, Enzyme will wrap apis including [`.simulate()`](https://airbnb.io/enzyme/docs/api/ReactWrapper/simulate.html), [`.setProps()`](https://airbnb.io/enzyme/docs/api/ReactWrapper/setProps.html), [`.setContext()`](https://airbnb.io/enzyme/docs/api/ReactWrapper/setContext.html), [`.invoke()`](https://airbnb.io/enzyme/docs/api/ReactWrapper/invoke.html) with [`ReactTestUtils.act()`](https://reactjs.org/docs/test-utils.html#act) so you don't need to manually wrap it.
232+
If you're using React 16.8+ and `.mount()`, Enzyme will wrap apis including [`.simulate()`](https://enzymejs.github.io/enzyme/docs/api/ReactWrapper/simulate.html), [`.setProps()`](https://enzymejs.github.io/enzyme/docs/api/ReactWrapper/setProps.html), [`.setContext()`](https://enzymejs.github.io/enzyme/docs/api/ReactWrapper/setContext.html), [`.invoke()`](https://enzymejs.github.io/enzyme/docs/api/ReactWrapper/invoke.html) with [`ReactTestUtils.act()`](https://reactjs.org/docs/test-utils.html#act) so you don't need to manually wrap it.
233233

234234
A common pattern to trigger handlers with `.act()` and assert is:
235235

book.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
],
1313
"pluginsConfig": {
1414
"edit-link": {
15-
"base": "https://github.com/airbnb/enzyme/tree/master",
15+
"base": "https://github.com/enzymejs/enzyme/tree/master",
1616
"label": "Edit This Page"
1717
},
1818
"github": {
19-
"url": "https://github.com/airbnb/enzyme/"
19+
"url": "https://github.com/enzymejs/enzyme/"
2020
}
2121
}
2222
}

docs/common-issues.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This list aims to be comprehensive. If you find an issue that has been frequentl
88

99
This could be due to a regression, or the feature is not yet implemented. If you are wanting to use a
1010
certain query syntax, make sure it is implemented first before raising an issue. Here is the list of
11-
selectors we currently support: https://github.com/airbnb/enzyme/blob/master/docs/api/selector.md
11+
selectors we currently support: https://github.com/enzymejs/enzyme/blob/master/docs/api/selector.md
1212

1313
### Nested component may not be updated after wrapper updates
1414

@@ -32,7 +32,7 @@ passes.
3232

3333
This is because the wrapper returned by `.find()` (and every other method that produces a new wrapper) is immutable and won't update.
3434

35-
More details and motivation can be found at [migration from 2 to 3: Calling props() after a state change](https://github.com/airbnb/enzyme/blob/master/docs/guides/migration-from-2-to-3.md#calling-props-after-a-state-change).
35+
More details and motivation can be found at [migration from 2 to 3: Calling props() after a state change](https://github.com/enzymejs/enzyme/blob/master/docs/guides/migration-from-2-to-3.md#calling-props-after-a-state-change).
3636

3737
###### Solutions
3838

docs/future.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Future Work
22

33
Discussion of additional features and support for enzyme should be initiated by opening a
4-
[GitHub issue](https://github.com/airbnb/enzyme/issues).
4+
[GitHub issue](https://github.com/enzymejs/enzyme/issues).
55

66
There are several things we'd like to address with enzyme that often get asked. Here are a couple
77
of projects that we plan on addressing in the near future:

docs/guides/jest.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Configure with Jest
44

5-
To run the setup file to configure Enzyme and the Adapter (as shown in the [Installation docs](https://airbnb.io/enzyme/docs/installation/)) with Jest, set `setupFilesAfterEnv` (previously `setupTestFrameworkScriptFile`) in your config file (check [Jest's documentation](http://jestjs.io/docs/en/configuration) for the possible locations of that config file) to literally the string `<rootDir>` and the path to your setup file.
5+
To run the setup file to configure Enzyme and the Adapter (as shown in the [Installation docs](https://enzymejs.github.io/enzyme/docs/installation/)) with Jest, set `setupFilesAfterEnv` (previously `setupTestFrameworkScriptFile`) in your config file (check [Jest's documentation](http://jestjs.io/docs/en/configuration) for the possible locations of that config file) to literally the string `<rootDir>` and the path to your setup file.
66

77
```json
88
{
@@ -47,4 +47,4 @@ If you are using Jest 0.9 – 14.0 with enzyme and using Jest's automocking feat
4747
}
4848
```
4949

50-
If you are using a previous version of Jest together with npm3, you may need to unmock [more modules](https://github.com/airbnb/enzyme/blob/78febd90fe2fb184771b8b0356b0fcffbdad386e/docs/guides/jest.md).
50+
If you are using a previous version of Jest together with npm3, you may need to unmock [more modules](https://github.com/enzymejs/enzyme/blob/78febd90fe2fb184771b8b0356b0fcffbdad386e/docs/guides/jest.md).

docs/guides/migration-from-2-to-3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ console.log(wrapper.find('.bar').length); // 2
221221

222222
Since `<Foo/>` has the className `bar` it is returned as the _hostNode_. As expected the `<div>` with the className `bar` is also returned
223223

224-
To avoid this you can explicity query for the DOM node: `wrapper.find('div.bar')`. Alternatively if you would like to only find host nodes use [hostNodes()](https://airbnb.io/enzyme/docs/api/ShallowWrapper/hostNodes.html)
224+
To avoid this you can explicity query for the DOM node: `wrapper.find('div.bar')`. Alternatively if you would like to only find host nodes use [hostNodes()](https://enzymejs.github.io/enzyme/docs/api/ShallowWrapper/hostNodes.html)
225225

226226
## For `mount`, updates are sometimes required when they weren't before
227227

docs/guides/react-native.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To use enzyme to test React Native, you currently need to configure an adapter,
1313

1414
## Configuring an Adapter
1515

16-
While a React Native adapter is [in discussion](https://github.com/airbnb/enzyme/issues/1436),
16+
While a React Native adapter is [in discussion](https://github.com/enzymejs/enzyme/issues/1436),
1717
a standard adapter may be used, such as 'enzyme-adapter-react-16':
1818

1919
```jsx
@@ -28,7 +28,7 @@ To use enzyme's `mount` until a React Native adapter exists, an emulated DOM mus
2828

2929
While some have had success with [react-native-mock-renderer](https://github.com/Root-App/react-native-mock-render),
3030
the recommended approach is to use [https://github.com/tmpvar/jsdom](JSDOM),
31-
as documented for enzyme at the [JSDOM](https://airbnb.io/enzyme/docs/guides/jsdom.html) documentation page.
31+
as documented for enzyme at the [JSDOM](https://enzymejs.github.io/enzyme/docs/guides/jsdom.html) documentation page.
3232

3333
JSDOM will allow all of the `enzyme` behavior you would expect. While Jest snapshot testing can be used with
3434
this approach as well, it isn't encouraged and is only supported through `wrapper.debug()`.
@@ -135,7 +135,7 @@ import React from 'react';
135135
import { mount } from 'enzyme';
136136
import { Text } from '../../../component/text';
137137

138-
describe('Component tested with airbnb enzyme', () => {
138+
describe('Component tested with enzyme', () => {
139139
test('App mount with enzyme', () => {
140140
const wrapper = mount(<Text />);
141141
// other tests operations

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"version": "0.0.1",
55
"description": "JavaScript Testing utilities for React",
6-
"homepage": "https://airbnb.io/enzyme/",
6+
"homepage": "https://enzymejs.github.io/enzyme/",
77
"scripts": {
88
"clean-local-npm": "rimraf node_modules/.bin/npm node_modules/.bin/npm.cmd",
99
"postinstall": "[ -n \"${TRAVIS-}\" ] || (npm run clean-local-npm && npm link npm && lerna bootstrap)",
@@ -34,14 +34,14 @@
3434
"docs:prepare": "gitbook install",
3535
"docs:build": "npm run docs:prepare && gitbook build",
3636
"docs:watch": "npm run docs:prepare && gitbook serve",
37-
"docs:publish": "npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'update book' && git fetch [email protected]:airbnb/enzyme.git gh-pages && git checkout -b gh-pages && git add . && git commit -am 'update book' && git push [email protected]:airbnb/enzyme.git gh-pages --force",
37+
"docs:publish": "npm run docs:clean && npm run docs:build && cd _book && git init && git commit --allow-empty -m 'update book' && git fetch [email protected]:enzymejs/enzyme.git gh-pages && git checkout -b gh-pages && git add . && git commit -am 'update book' && git push [email protected]:enzymejs/enzyme.git gh-pages --force",
3838
"pretravis": "npm run build",
3939
"travis": "nyc mocha --recursive packages/enzyme-test-suite/test",
4040
"since": "node since"
4141
},
4242
"repository": {
4343
"type": "git",
44-
"url": "https://github.com/airbnb/enzyme.git"
44+
"url": "https://github.com/enzymejs/enzyme.git"
4545
},
4646
"keywords": [
4747
"javascript",
@@ -57,7 +57,7 @@
5757
"tdd",
5858
"mocha"
5959
],
60-
"author": "Leland Richardson <leland.richardson@airbnb.com>",
60+
"author": "Jordan Harband <ljharb@gmail.com>",
6161
"license": "MIT",
6262
"devDependencies": {
6363
"babel-cli": "^6.26.0",

packages/enzyme-adapter-react-13/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "enzyme-adapter-react-13",
33
"version": "1.4.0",
44
"description": "JavaScript Testing utilities for React",
5-
"homepage": "https://airbnb.io/enzyme/",
5+
"homepage": "https://enzymejs.github.io/enzyme/",
66
"main": "build",
77
"scripts": {
88
"clean": "rimraf build",
@@ -15,7 +15,7 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/airbnb/enzyme.git",
18+
"url": "https://github.com/enzymejs/enzyme.git",
1919
"directory": "packages/enzyme-adapter-react-13"
2020
},
2121
"keywords": [
@@ -32,7 +32,7 @@
3232
"tdd",
3333
"mocha"
3434
],
35-
"author": "Leland Richardson <leland.richardson@airbnb.com>",
35+
"author": "Jordan Harband <ljharb@gmail.com>",
3636
"funding": {
3737
"url": "https://github.com/sponsors/ljharb"
3838
},

packages/enzyme-adapter-react-13/src/ReactThirteenAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import elementToTree from './ReactThirteenElementToTree';
2121

2222

2323
// this fixes some issues in React 0.13 with setState and jsdom...
24-
// see issue: https://github.com/airbnb/enzyme/issues/27
24+
// see issue: https://github.com/enzymejs/enzyme/issues/27
2525
// eslint-disable-next-line import/no-unresolved
2626
require('react/lib/ExecutionEnvironment').canUseDOM = true;
2727

packages/enzyme-adapter-react-14/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "enzyme-adapter-react-14",
33
"version": "1.4.1",
44
"description": "JavaScript Testing utilities for React",
5-
"homepage": "https://airbnb.io/enzyme/",
5+
"homepage": "https://enzymejs.github.io/enzyme/",
66
"main": "build",
77
"scripts": {
88
"clean": "rimraf build",
@@ -15,7 +15,7 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/airbnb/enzyme.git",
18+
"url": "https://github.com/enzymejs/enzyme.git",
1919
"directory": "packages/enzyme-adapter-react-14"
2020
},
2121
"keywords": [
@@ -32,7 +32,7 @@
3232
"tdd",
3333
"mocha"
3434
],
35-
"author": "Leland Richardson <leland.richardson@airbnb.com>",
35+
"author": "Jordan Harband <ljharb@gmail.com>",
3636
"funding": {
3737
"url": "https://github.com/sponsors/ljharb"
3838
},

packages/enzyme-adapter-react-15.4/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "enzyme-adapter-react-15.4",
33
"version": "1.4.1",
44
"description": "JavaScript Testing utilities for React",
5-
"homepage": "https://airbnb.io/enzyme/",
5+
"homepage": "https://enzymejs.github.io/enzyme/",
66
"main": "build",
77
"scripts": {
88
"clean": "rimraf build",
@@ -15,7 +15,7 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/airbnb/enzyme.git",
18+
"url": "https://github.com/enzymejs/enzyme.git",
1919
"directory": "packages/enzyme-adapter-react-15.4"
2020
},
2121
"keywords": [
@@ -32,7 +32,7 @@
3232
"tdd",
3333
"mocha"
3434
],
35-
"author": "Leland Richardson <leland.richardson@airbnb.com>",
35+
"author": "Jordan Harband <ljharb@gmail.com>",
3636
"funding": {
3737
"url": "https://github.com/sponsors/ljharb"
3838
},

packages/enzyme-adapter-react-15/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "enzyme-adapter-react-15",
33
"version": "1.4.1",
44
"description": "JavaScript Testing utilities for React",
5-
"homepage": "https://airbnb.io/enzyme/",
5+
"homepage": "https://enzymejs.github.io/enzyme/",
66
"main": "build",
77
"scripts": {
88
"clean": "rimraf build",
@@ -15,7 +15,7 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/airbnb/enzyme.git",
18+
"url": "https://github.com/enzymejs/enzyme.git",
1919
"directory": "packages/enzyme-adapter-react-15"
2020
},
2121
"keywords": [
@@ -32,7 +32,7 @@
3232
"tdd",
3333
"mocha"
3434
],
35-
"author": "Leland Richardson <leland.richardson@airbnb.com>",
35+
"author": "Jordan Harband <ljharb@gmail.com>",
3636
"funding": {
3737
"url": "https://github.com/sponsors/ljharb"
3838
},

packages/enzyme-adapter-react-16.1/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "enzyme-adapter-react-16.1",
33
"version": "1.6.2",
44
"description": "JavaScript Testing utilities for React",
5-
"homepage": "https://airbnb.io/enzyme/",
5+
"homepage": "https://enzymejs.github.io/enzyme/",
66
"main": "build",
77
"scripts": {
88
"clean": "rimraf build",
@@ -15,7 +15,7 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/airbnb/enzyme.git",
18+
"url": "https://github.com/enzymejs/enzyme.git",
1919
"directory": "packages/enzyme-adapter-react-16.1"
2020
},
2121
"keywords": [
@@ -32,7 +32,7 @@
3232
"tdd",
3333
"mocha"
3434
],
35-
"author": "Leland Richardson <leland.richardson@airbnb.com>",
35+
"author": "Jordan Harband <ljharb@gmail.com>",
3636
"funding": {
3737
"url": "https://github.com/sponsors/ljharb"
3838
},

packages/enzyme-adapter-react-16.2/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "enzyme-adapter-react-16.2",
33
"version": "1.6.2",
44
"description": "JavaScript Testing utilities for React",
5-
"homepage": "https://airbnb.io/enzyme/",
5+
"homepage": "https://enzymejs.github.io/enzyme/",
66
"main": "build",
77
"scripts": {
88
"clean": "rimraf build",
@@ -15,7 +15,7 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/airbnb/enzyme.git",
18+
"url": "https://github.com/enzymejs/enzyme.git",
1919
"directory": "packages/enzyme-adapter-react-16.2"
2020
},
2121
"keywords": [
@@ -32,7 +32,7 @@
3232
"tdd",
3333
"mocha"
3434
],
35-
"author": "Leland Richardson <leland.richardson@airbnb.com>",
35+
"author": "Jordan Harband <ljharb@gmail.com>",
3636
"funding": {
3737
"url": "https://github.com/sponsors/ljharb"
3838
},

packages/enzyme-adapter-react-16.3/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "enzyme-adapter-react-16.3",
33
"version": "1.7.2",
44
"description": "JavaScript Testing utilities for React",
5-
"homepage": "https://airbnb.io/enzyme/",
5+
"homepage": "https://enzymejs.github.io/enzyme/",
66
"main": "build",
77
"scripts": {
88
"clean": "rimraf build",
@@ -15,7 +15,7 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/airbnb/enzyme.git",
18+
"url": "https://github.com/enzymejs/enzyme.git",
1919
"directory": "packages/enzyme-adapter-react-16.3"
2020
},
2121
"keywords": [
@@ -32,7 +32,7 @@
3232
"tdd",
3333
"mocha"
3434
],
35-
"author": "Leland Richardson <leland.richardson@airbnb.com>",
35+
"author": "Jordan Harband <ljharb@gmail.com>",
3636
"funding": {
3737
"url": "https://github.com/sponsors/ljharb"
3838
},

0 commit comments

Comments
 (0)