1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Update Enzyme adapter name

This commit is contained in:
Germain Souquet
2021-06-09 11:57:29 +01:00
parent 85d1bb65c6
commit d492ee4d8a
4 changed files with 19 additions and 19 deletions

View File

@ -16,7 +16,7 @@ limitations under the License.
import '../skinned-sdk'; // Must be first for skinning to work import '../skinned-sdk'; // Must be first for skinning to work
import React from "react"; import React from "react";
import Adapter from "enzyme-adapter-react-16"; import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
import { configure, mount } from "enzyme"; import { configure, mount } from "enzyme";
import { import {

View File

@ -32,7 +32,7 @@ import Matrix from 'matrix-js-sdk';
const test_utils = require('../../test-utils'); const test_utils = require('../../test-utils');
const mockclock = require('../../mock-clock'); const mockclock = require('../../mock-clock');
import Adapter from "enzyme-adapter-react-16"; import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
import { configure, mount } from "enzyme"; import { configure, mount } from "enzyme";
import MatrixClientContext from "../../../src/contexts/MatrixClientContext"; import MatrixClientContext from "../../../src/contexts/MatrixClientContext";
@ -77,7 +77,7 @@ describe('MessagePanel', function() {
DMRoomMap.makeShared(); DMRoomMap.makeShared();
}); });
afterEach(function () { afterEach(function() {
clock.uninstall(); clock.uninstall();
}); });
@ -451,7 +451,7 @@ describe('MessagePanel', function() {
expect(isReadMarkerVisible(rm)).toBeFalsy(); expect(isReadMarkerVisible(rm)).toBeFalsy();
}); });
it('should render Date separators for the events', function () { it('should render Date separators for the events', function() {
const events = mkOneDayEvents(); const events = mkOneDayEvents();
const res = mount( const res = mount(
<WrappedMessagePanel <WrappedMessagePanel

View File

@ -15,7 +15,7 @@ limitations under the License.
*/ */
import React from "react"; import React from "react";
import Adapter from "enzyme-adapter-react-16"; import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
import { configure, mount } from "enzyme"; import { configure, mount } from "enzyme";
import sdk from "../../../skinned-sdk"; import sdk from "../../../skinned-sdk";

View File

@ -15,7 +15,7 @@ limitations under the License.
*/ */
import '../../../skinned-sdk'; // Must be first for skinning to work import '../../../skinned-sdk'; // Must be first for skinning to work
import Adapter from "enzyme-adapter-react-16"; import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
import { configure, mount } from "enzyme"; import { configure, mount } from "enzyme";
import React from "react"; import React from "react";
import {act} from "react-dom/test-utils"; import {act} from "react-dom/test-utils";