Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 27ba1e5

Browse files
authored
Update matrix-org/react (enzyme deprecation) (#9116)
1 parent 3991ce9 commit 27ba1e5

File tree

80 files changed

+90
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+90
-7
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@
178178
"enzyme-to-json": "^3.6.2",
179179
"eslint": "8.9.0",
180180
"eslint-config-google": "^0.14.0",
181+
"eslint-plugin-deprecate": "^0.7.0",
181182
"eslint-plugin-import": "^2.25.4",
182183
"eslint-plugin-jsx-a11y": "^6.5.1",
183-
"eslint-plugin-matrix-org": "^0.5.2",
184+
"eslint-plugin-matrix-org": "^0.6.1",
184185
"eslint-plugin-react": "^7.28.0",
185186
"eslint-plugin-react-hooks": "^4.3.0",
186187
"fs-extra": "^10.0.1",

test/HtmlUtils-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import React from 'react';
18+
// eslint-disable-next-line deprecate/import
1819
import { mount } from 'enzyme';
1920
import { mocked } from 'jest-mock';
2021

test/accessibility/RovingTabIndex-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import * as React from "react";
18+
// eslint-disable-next-line deprecate/import
1819
import { mount, ReactWrapper } from "enzyme";
1920

2021
import {

test/components/structures/RightPanel-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import React from "react";
18+
// eslint-disable-next-line deprecate/import
1819
import { mount } from "enzyme";
1920
import { jest } from "@jest/globals";
2021
import { mocked, MockedObject } from "jest-mock";

test/components/structures/RoomView-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import React from "react";
18+
// eslint-disable-next-line deprecate/import
1819
import { mount, ReactWrapper } from "enzyme";
1920
import { act } from "react-dom/test-utils";
2021
import { mocked, MockedObject } from "jest-mock";

test/components/structures/ThreadPanel-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import React from 'react';
18+
// eslint-disable-next-line deprecate/import
1819
import { shallow, mount } from "enzyme";
1920
import 'focus-visible'; // to fix context menus
2021

test/components/structures/TimelinePanel-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import React from 'react';
18+
// eslint-disable-next-line deprecate/import
1819
import { mount, ReactWrapper } from "enzyme";
1920
import { MessageEvent } from 'matrix-events-sdk';
2021
import { EventTimelineSet, MatrixEvent, PendingEventOrdering, Room } from 'matrix-js-sdk/src/matrix';

test/components/structures/VideoRoomView-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import React from "react";
18+
// eslint-disable-next-line deprecate/import
1819
import { mount } from "enzyme";
1920
import { act } from "react-dom/test-utils";
2021
import { mocked } from "jest-mock";

test/components/views/audio_messages/RecordingPlayback-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import React from 'react';
18+
// eslint-disable-next-line deprecate/import
1819
import { mount } from 'enzyme';
1920
import { mocked } from 'jest-mock';
2021
import { logger } from 'matrix-js-sdk/src/logger';

test/components/views/beacon/BeaconListItem-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ limitations under the License.
1515
*/
1616

1717
import React from 'react';
18+
// eslint-disable-next-line deprecate/import
1819
import { mount } from 'enzyme';
1920
import {
2021
Beacon,

0 commit comments

Comments
 (0)