Move test files into test/unit-tests (#30542)
I think these tests got misfiled. All the other jest tests are under `test/unit-tests`.
This commit is contained in:
+5
-5
@@ -12,11 +12,11 @@ import { TooltipProvider } from "@vector-im/compound-web";
|
|||||||
import { mocked } from "jest-mock";
|
import { mocked } from "jest-mock";
|
||||||
import { findLast, last } from "lodash";
|
import { findLast, last } from "lodash";
|
||||||
|
|
||||||
import ModalWidgetDialog from "../../../../src/components/views/dialogs/ModalWidgetDialog";
|
import ModalWidgetDialog from "../../../../../src/components/views/dialogs/ModalWidgetDialog";
|
||||||
import { stubClient } from "../../../test-utils";
|
import { stubClient } from "../../../../test-utils";
|
||||||
import defaultDispatcher from "../../../../src/dispatcher/dispatcher";
|
import defaultDispatcher from "../../../../../src/dispatcher/dispatcher";
|
||||||
import { Action } from "../../../../src/dispatcher/actions";
|
import { Action } from "../../../../../src/dispatcher/actions";
|
||||||
import SettingsStore from "../../../../src/settings/SettingsStore";
|
import SettingsStore from "../../../../../src/settings/SettingsStore";
|
||||||
|
|
||||||
jest.mock("matrix-widget-api", () => ({
|
jest.mock("matrix-widget-api", () => ({
|
||||||
...jest.requireActual("matrix-widget-api"),
|
...jest.requireActual("matrix-widget-api"),
|
||||||
+2
-2
@@ -10,8 +10,8 @@ import React from "react";
|
|||||||
import { render, screen } from "jest-matrix-react";
|
import { render, screen } from "jest-matrix-react";
|
||||||
import userEvent from "@testing-library/user-event";
|
import userEvent from "@testing-library/user-event";
|
||||||
|
|
||||||
import { InitialCryptoSetupDialog } from "../../../../../src/components/views/dialogs/security/InitialCryptoSetupDialog";
|
import { InitialCryptoSetupDialog } from "../../../../../../src/components/views/dialogs/security/InitialCryptoSetupDialog";
|
||||||
import { InitialCryptoSetupStore } from "../../../../../src/stores/InitialCryptoSetupStore";
|
import { InitialCryptoSetupStore } from "../../../../../../src/stores/InitialCryptoSetupStore";
|
||||||
|
|
||||||
describe("InitialCryptoSetupDialog", () => {
|
describe("InitialCryptoSetupDialog", () => {
|
||||||
const storeMock = {
|
const storeMock = {
|
||||||
+2
-2
@@ -12,8 +12,8 @@ import { type CryptoApi } from "matrix-js-sdk/src/crypto-api";
|
|||||||
import { type Mocked } from "jest-mock";
|
import { type Mocked } from "jest-mock";
|
||||||
import { type MatrixClient } from "matrix-js-sdk/src/matrix";
|
import { type MatrixClient } from "matrix-js-sdk/src/matrix";
|
||||||
|
|
||||||
import { getMockClientWithEventEmitter } from "../../../../test-utils";
|
import { getMockClientWithEventEmitter } from "../../../../../test-utils";
|
||||||
import { ResetIdentityDialog } from "../../../../../src/components/views/dialogs/ResetIdentityDialog";
|
import { ResetIdentityDialog } from "../../../../../../src/components/views/dialogs/ResetIdentityDialog";
|
||||||
|
|
||||||
describe("ResetIdentityDialog", () => {
|
describe("ResetIdentityDialog", () => {
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
+4
-4
@@ -11,10 +11,10 @@ import { render, screen } from "jest-matrix-react";
|
|||||||
import { type Mocked } from "jest-mock";
|
import { type Mocked } from "jest-mock";
|
||||||
import { type CryptoApi } from "matrix-js-sdk/src/crypto-api";
|
import { type CryptoApi } from "matrix-js-sdk/src/crypto-api";
|
||||||
|
|
||||||
import SetupEncryptionDialog from "../../../../../src/components/views/dialogs/security/SetupEncryptionDialog";
|
import SetupEncryptionDialog from "../../../../../../src/components/views/dialogs/security/SetupEncryptionDialog";
|
||||||
import { getMockClientWithEventEmitter } from "../../../../test-utils";
|
import { getMockClientWithEventEmitter } from "../../../../../test-utils";
|
||||||
import { Phase, SetupEncryptionStore } from "../../../../../src/stores/SetupEncryptionStore";
|
import { Phase, SetupEncryptionStore } from "../../../../../../src/stores/SetupEncryptionStore";
|
||||||
import Modal from "../../../../../src/Modal";
|
import Modal from "../../../../../../src/Modal";
|
||||||
|
|
||||||
describe("SetupEncryptionDialog", () => {
|
describe("SetupEncryptionDialog", () => {
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
Reference in New Issue
Block a user