Fix tests failing to load skin

We should find a better way to do this, but this works well enough.
pull/21833/head
Travis Ralston 2021-03-09 10:13:16 -07:00
parent 71b8959d3c
commit 375ffafda6
5 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
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 "enzyme-adapter-react-16";
import { configure, mount } from "enzyme"; import { configure, mount } from "enzyme";

View File

@ -1,3 +1,4 @@
import '../../../skinned-sdk'; // Must be first for skinning to work
import React from 'react'; import React from 'react';
import TestRenderer from 'react-test-renderer'; import TestRenderer from 'react-test-renderer';
import { EventEmitter } from 'events'; import { EventEmitter } from 'events';

View File

@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import '../../../skinned-sdk'; // Must be first for skinning to work
import Adapter from "enzyme-adapter-react-16"; import Adapter from "enzyme-adapter-react-16";
import { configure, mount } from "enzyme"; import { configure, mount } from "enzyme";
import React from "react"; import React from "react";

View File

@ -1,3 +1,4 @@
import './skinned-sdk'; // Must be first for skinning to work
import {_waitForMember, canEncryptToAllUsers} from '../src/createRoom'; import {_waitForMember, canEncryptToAllUsers} from '../src/createRoom';
import {EventEmitter} from 'events'; import {EventEmitter} from 'events';

View File

@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import '../skinned-sdk'; // Must be first for skinning to work
import {parseEvent} from "../../src/editor/deserialize"; import {parseEvent} from "../../src/editor/deserialize";
import {createPartCreator} from "./mock"; import {createPartCreator} from "./mock";