diff --git a/apps/browser/src/auth/popup/utils/auth-popout-window.spec.ts b/apps/browser/src/auth/popup/utils/auth-popout-window.spec.ts index 673e9d5c335..9e7d69fad97 100644 --- a/apps/browser/src/auth/popup/utils/auth-popout-window.spec.ts +++ b/apps/browser/src/auth/popup/utils/auth-popout-window.spec.ts @@ -1,4 +1,4 @@ -import { createChromeTabMock } from "../../../autofill/jest/autofill-mocks"; +import { createChromeTabMock } from "../../../autofill/spec/autofill-mocks"; import { BrowserApi } from "../../../platform/browser/browser-api"; import BrowserPopupUtils from "../../../platform/popup/browser-popup-utils"; diff --git a/apps/browser/src/autofill/background/notification.background.spec.ts b/apps/browser/src/autofill/background/notification.background.spec.ts index c1388f4c1f0..ceb60350262 100644 --- a/apps/browser/src/autofill/background/notification.background.spec.ts +++ b/apps/browser/src/autofill/background/notification.background.spec.ts @@ -7,8 +7,8 @@ import { CipherService } from "@bitwarden/common/vault/services/cipher.service"; import { FolderService } from "@bitwarden/common/vault/services/folder/folder.service"; import { BrowserStateService } from "../../platform/services/browser-state.service"; -import { createChromeTabMock } from "../jest/autofill-mocks"; import AutofillService from "../services/autofill.service"; +import { createChromeTabMock } from "../spec/autofill-mocks"; import { AddLoginQueueMessage } from "./abstractions/notification.background"; import NotificationBackground from "./notification.background"; diff --git a/apps/browser/src/autofill/background/overlay.background.spec.ts b/apps/browser/src/autofill/background/overlay.background.spec.ts index c70eaf402e3..9cc56709dd0 100644 --- a/apps/browser/src/autofill/background/overlay.background.spec.ts +++ b/apps/browser/src/autofill/background/overlay.background.spec.ts @@ -16,15 +16,15 @@ import { BrowserApi } from "../../platform/browser/browser-api"; import BrowserPlatformUtilsService from "../../platform/services/browser-platform-utils.service"; import { BrowserStateService } from "../../platform/services/browser-state.service"; import { SHOW_AUTOFILL_BUTTON } from "../constants"; +import { AutofillService } from "../services/abstractions/autofill.service"; import { createAutofillPageDetailsMock, createChromeTabMock, createFocusedFieldDataMock, createPageDetailMock, createPortSpyMock, -} from "../jest/autofill-mocks"; -import { flushPromises, sendExtensionRuntimeMessage, sendPortMessage } from "../jest/testing-utils"; -import { AutofillService } from "../services/abstractions/autofill.service"; +} from "../spec/autofill-mocks"; +import { flushPromises, sendExtensionRuntimeMessage, sendPortMessage } from "../spec/testing-utils"; import { AutofillOverlayElement, AutofillOverlayPort, diff --git a/apps/browser/src/autofill/background/tabs.background.spec.ts b/apps/browser/src/autofill/background/tabs.background.spec.ts index eb9906ebff3..b95e303f17e 100644 --- a/apps/browser/src/autofill/background/tabs.background.spec.ts +++ b/apps/browser/src/autofill/background/tabs.background.spec.ts @@ -8,7 +8,7 @@ import { triggerTabOnReplacedEvent, triggerTabOnUpdatedEvent, triggerWindowOnFocusedChangedEvent, -} from "../jest/testing-utils"; +} from "../spec/testing-utils"; import NotificationBackground from "./notification.background"; import OverlayBackground from "./overlay.background"; diff --git a/apps/browser/src/autofill/content/autofill-init.spec.ts b/apps/browser/src/autofill/content/autofill-init.spec.ts index ecf67740183..6df35c1af7b 100644 --- a/apps/browser/src/autofill/content/autofill-init.spec.ts +++ b/apps/browser/src/autofill/content/autofill-init.spec.ts @@ -2,10 +2,10 @@ import { mock } from "jest-mock-extended"; import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status"; -import { flushPromises, sendExtensionRuntimeMessage } from "../jest/testing-utils"; import AutofillPageDetails from "../models/autofill-page-details"; import AutofillScript from "../models/autofill-script"; import AutofillOverlayContentService from "../services/autofill-overlay-content.service"; +import { flushPromises, sendExtensionRuntimeMessage } from "../spec/testing-utils"; import { AutofillOverlayVisibility, RedirectFocusDirection } from "../utils/autofill-overlay.enum"; import { AutofillExtensionMessage } from "./abstractions/autofill-init"; diff --git a/apps/browser/src/autofill/content/content-message-handler.spec.ts b/apps/browser/src/autofill/content/content-message-handler.spec.ts index 2cbc22b443a..03055961d7d 100644 --- a/apps/browser/src/autofill/content/content-message-handler.spec.ts +++ b/apps/browser/src/autofill/content/content-message-handler.spec.ts @@ -1,6 +1,6 @@ import { mock } from "jest-mock-extended"; -import { postWindowMessage, sendExtensionRuntimeMessage } from "../jest/testing-utils"; +import { postWindowMessage, sendExtensionRuntimeMessage } from "../spec/testing-utils"; describe("ContentMessageHandler", () => { const sendMessageSpy = jest.spyOn(chrome.runtime, "sendMessage"); diff --git a/apps/browser/src/autofill/overlay/iframe-content/autofill-overlay-iframe.service.spec.ts b/apps/browser/src/autofill/overlay/iframe-content/autofill-overlay-iframe.service.spec.ts index 554822a9af8..5ab79881579 100644 --- a/apps/browser/src/autofill/overlay/iframe-content/autofill-overlay-iframe.service.spec.ts +++ b/apps/browser/src/autofill/overlay/iframe-content/autofill-overlay-iframe.service.spec.ts @@ -3,12 +3,12 @@ import { mock } from "jest-mock-extended"; import { ThemeType } from "@bitwarden/common/platform/enums"; import { EVENTS } from "../../constants"; -import { createPortSpyMock } from "../../jest/autofill-mocks"; +import { createPortSpyMock } from "../../spec/autofill-mocks"; import { flushPromises, sendPortMessage, triggerPortOnDisconnectEvent, -} from "../../jest/testing-utils"; +} from "../../spec/testing-utils"; import { AutofillOverlayPort } from "../../utils/autofill-overlay.enum"; import AutofillOverlayIframeService from "./autofill-overlay-iframe.service"; diff --git a/apps/browser/src/autofill/overlay/pages/button/autofill-overlay-button.spec.ts b/apps/browser/src/autofill/overlay/pages/button/autofill-overlay-button.spec.ts index ca7a714b232..d19a75c04a2 100644 --- a/apps/browser/src/autofill/overlay/pages/button/autofill-overlay-button.spec.ts +++ b/apps/browser/src/autofill/overlay/pages/button/autofill-overlay-button.spec.ts @@ -1,7 +1,7 @@ import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status"; -import { createInitAutofillOverlayButtonMessageMock } from "../../../jest/autofill-mocks"; -import { postWindowMessage } from "../../../jest/testing-utils"; +import { createInitAutofillOverlayButtonMessageMock } from "../../../spec/autofill-mocks"; +import { postWindowMessage } from "../../../spec/testing-utils"; import AutofillOverlayButton from "./autofill-overlay-button"; diff --git a/apps/browser/src/autofill/overlay/pages/list/autofill-overlay-list.spec.ts b/apps/browser/src/autofill/overlay/pages/list/autofill-overlay-list.spec.ts index f26dc2bab0f..ce31b61fa58 100644 --- a/apps/browser/src/autofill/overlay/pages/list/autofill-overlay-list.spec.ts +++ b/apps/browser/src/autofill/overlay/pages/list/autofill-overlay-list.spec.ts @@ -2,8 +2,8 @@ import { mock } from "jest-mock-extended"; import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status"; -import { createInitAutofillOverlayListMessageMock } from "../../../jest/autofill-mocks"; -import { postWindowMessage } from "../../../jest/testing-utils"; +import { createInitAutofillOverlayListMessageMock } from "../../../spec/autofill-mocks"; +import { postWindowMessage } from "../../../spec/testing-utils"; import AutofillOverlayList from "./autofill-overlay-list"; diff --git a/apps/browser/src/autofill/services/autofill-overlay-content.service.spec.ts b/apps/browser/src/autofill/services/autofill-overlay-content.service.spec.ts index fb6119d816a..e2bc787d3b0 100644 --- a/apps/browser/src/autofill/services/autofill-overlay-content.service.spec.ts +++ b/apps/browser/src/autofill/services/autofill-overlay-content.service.spec.ts @@ -3,9 +3,9 @@ import { mock } from "jest-mock-extended"; import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status"; import { EVENTS } from "../constants"; -import { createAutofillFieldMock } from "../jest/autofill-mocks"; -import { flushPromises } from "../jest/testing-utils"; import AutofillField from "../models/autofill-field"; +import { createAutofillFieldMock } from "../spec/autofill-mocks"; +import { flushPromises } from "../spec/testing-utils"; import { ElementWithOpId, FormFieldElement } from "../types"; import { AutofillOverlayElement, diff --git a/apps/browser/src/autofill/services/autofill.service.spec.ts b/apps/browser/src/autofill/services/autofill.service.spec.ts index d0377aaa7be..3fd0bf54342 100644 --- a/apps/browser/src/autofill/services/autofill.service.spec.ts +++ b/apps/browser/src/autofill/services/autofill.service.spec.ts @@ -26,17 +26,17 @@ import { TotpService } from "@bitwarden/common/vault/services/totp.service"; import { BrowserApi } from "../../platform/browser/browser-api"; import { BrowserStateService } from "../../platform/services/browser-state.service"; import { AutofillPort } from "../enums/autofill-port.enums"; +import AutofillField from "../models/autofill-field"; +import AutofillPageDetails from "../models/autofill-page-details"; +import AutofillScript from "../models/autofill-script"; import { createAutofillFieldMock, createAutofillPageDetailsMock, createAutofillScriptMock, createChromeTabMock, createGenerateFillScriptOptionsMock, -} from "../jest/autofill-mocks"; -import { triggerTestFailure } from "../jest/testing-utils"; -import AutofillField from "../models/autofill-field"; -import AutofillPageDetails from "../models/autofill-page-details"; -import AutofillScript from "../models/autofill-script"; +} from "../spec/autofill-mocks"; +import { triggerTestFailure } from "../spec/testing-utils"; import { AutofillOverlayVisibility } from "../utils/autofill-overlay.enum"; import { diff --git a/apps/browser/src/autofill/services/collect-autofill-content.service.spec.ts b/apps/browser/src/autofill/services/collect-autofill-content.service.spec.ts index 68df1623847..d5c461269b0 100644 --- a/apps/browser/src/autofill/services/collect-autofill-content.service.spec.ts +++ b/apps/browser/src/autofill/services/collect-autofill-content.service.spec.ts @@ -1,8 +1,8 @@ import { mock } from "jest-mock-extended"; -import { createAutofillFieldMock, createAutofillFormMock } from "../jest/autofill-mocks"; import AutofillField from "../models/autofill-field"; import AutofillForm from "../models/autofill-form"; +import { createAutofillFieldMock, createAutofillFormMock } from "../spec/autofill-mocks"; import { ElementWithOpId, FillableFormFieldElement, diff --git a/apps/browser/src/autofill/jest/autofill-mocks.ts b/apps/browser/src/autofill/spec/autofill-mocks.ts similarity index 100% rename from apps/browser/src/autofill/jest/autofill-mocks.ts rename to apps/browser/src/autofill/spec/autofill-mocks.ts diff --git a/apps/browser/src/autofill/jest/testing-utils.ts b/apps/browser/src/autofill/spec/testing-utils.ts similarity index 100% rename from apps/browser/src/autofill/jest/testing-utils.ts rename to apps/browser/src/autofill/spec/testing-utils.ts diff --git a/apps/browser/src/autofill/utils/index.spec.ts b/apps/browser/src/autofill/utils/index.spec.ts index 4024d5839a8..2fe8496b8db 100644 --- a/apps/browser/src/autofill/utils/index.spec.ts +++ b/apps/browser/src/autofill/utils/index.spec.ts @@ -1,5 +1,5 @@ import { AutofillPort } from "../enums/autofill-port.enums"; -import { triggerPortOnDisconnectEvent } from "../jest/testing-utils"; +import { triggerPortOnDisconnectEvent } from "../spec/testing-utils"; import { logoIcon, logoLockedIcon } from "./svg-icons"; diff --git a/apps/browser/src/platform/popup/browser-popup-utils.spec.ts b/apps/browser/src/platform/popup/browser-popup-utils.spec.ts index ffe485e1a26..e84cd19a45f 100644 --- a/apps/browser/src/platform/popup/browser-popup-utils.spec.ts +++ b/apps/browser/src/platform/popup/browser-popup-utils.spec.ts @@ -1,4 +1,4 @@ -import { createChromeTabMock } from "../../autofill/jest/autofill-mocks"; +import { createChromeTabMock } from "../../autofill/spec/autofill-mocks"; import { BrowserApi } from "../browser/browser-api"; import BrowserPopupUtils from "./browser-popup-utils"; diff --git a/apps/browser/src/tools/background/fileless-importer.background.spec.ts b/apps/browser/src/tools/background/fileless-importer.background.spec.ts index a119e20405f..9fc87d65a43 100644 --- a/apps/browser/src/tools/background/fileless-importer.background.spec.ts +++ b/apps/browser/src/tools/background/fileless-importer.background.spec.ts @@ -8,12 +8,12 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv import { Importer, ImportResult, ImportServiceAbstraction } from "@bitwarden/importer/core"; import NotificationBackground from "../../autofill/background/notification.background"; -import { createPortSpyMock } from "../../autofill/jest/autofill-mocks"; +import { createPortSpyMock } from "../../autofill/spec/autofill-mocks"; import { flushPromises, sendPortMessage, triggerRuntimeOnConnectEvent, -} from "../../autofill/jest/testing-utils"; +} from "../../autofill/spec/testing-utils"; import { FilelessImportPort, FilelessImportType } from "../enums/fileless-import.enums"; import FilelessImporterBackground from "./fileless-importer.background"; diff --git a/apps/browser/src/tools/content/lp-fileless-importer.spec.ts b/apps/browser/src/tools/content/lp-fileless-importer.spec.ts index 0cc47a333a2..9646eaa893b 100644 --- a/apps/browser/src/tools/content/lp-fileless-importer.spec.ts +++ b/apps/browser/src/tools/content/lp-fileless-importer.spec.ts @@ -1,7 +1,7 @@ import { mock } from "jest-mock-extended"; -import { createPortSpyMock } from "../../autofill/jest/autofill-mocks"; -import { sendPortMessage } from "../../autofill/jest/testing-utils"; +import { createPortSpyMock } from "../../autofill/spec/autofill-mocks"; +import { sendPortMessage } from "../../autofill/spec/testing-utils"; import { FilelessImportPort } from "../enums/fileless-import.enums"; import { LpFilelessImporter } from "./abstractions/lp-fileless-importer";