diff --git a/packages/wdio-electron-service/test/launcher.spec.ts b/packages/wdio-electron-service/test/launcher.spec.ts index 18d334b5..c32bcfbd 100644 --- a/packages/wdio-electron-service/test/launcher.spec.ts +++ b/packages/wdio-electron-service/test/launcher.spec.ts @@ -3,11 +3,11 @@ import path from 'node:path'; import { describe, beforeEach, afterEach, it, expect, vi, Mock } from 'vitest'; import nock from 'nock'; import type { Capabilities, Options } from '@wdio/types'; +import type { ElectronServiceOptions } from '@wdio/electron-types'; import ElectronLaunchService from '../src/launcher.js'; import { getAppBuildInfo, getBinaryPath } from '@wdio/electron-utils'; import { mockProcessProperty, revertProcessProperty } from './helpers.js'; -import type { ElectronServiceOptions } from '../src/index.js'; let LaunchService: typeof ElectronLaunchService; let instance: ElectronLaunchService | undefined; diff --git a/packages/wdio-electron-service/test/mock.spec.ts b/packages/wdio-electron-service/test/mock.spec.ts index c50fafad..1e63b563 100644 --- a/packages/wdio-electron-service/test/mock.spec.ts +++ b/packages/wdio-electron-service/test/mock.spec.ts @@ -3,7 +3,7 @@ import { isAsyncFunction } from 'node:util/types'; import { describe, it, expect, beforeEach, vi, Mock } from 'vitest'; import { createMock } from '../src/mock.js'; -import { ElectronInterface, ElectronType } from '@wdio/electron-types'; +import type { ElectronInterface, ElectronType } from '@wdio/electron-types'; let mockFn: Mock; diff --git a/packages/wdio-electron-service/test/mockStore.spec.ts b/packages/wdio-electron-service/test/mockStore.spec.ts index 6a7c68be..823d8a62 100644 --- a/packages/wdio-electron-service/test/mockStore.spec.ts +++ b/packages/wdio-electron-service/test/mockStore.spec.ts @@ -1,6 +1,6 @@ import { vi, describe, beforeEach, afterEach, it, expect } from 'vitest'; import { ElectronServiceMockStore } from '../src/mockStore.js'; -import { ElectronMock } from '@wdio/electron-types'; +import type { ElectronMock } from '@wdio/electron-types'; let mockStore: ElectronServiceMockStore; diff --git a/packages/wdio-electron-service/test/service.spec.ts b/packages/wdio-electron-service/test/service.spec.ts index 5aa33ec6..82bd3952 100644 --- a/packages/wdio-electron-service/test/service.spec.ts +++ b/packages/wdio-electron-service/test/service.spec.ts @@ -1,12 +1,12 @@ import { vi, describe, beforeEach, it, expect, Mock } from 'vitest'; +import type { BrowserExtension, ElectronMock } from '@wdio/electron-types'; import { mockProcessProperty } from './helpers.js'; import { clearAllMocks } from '../src/commands/clearAllMocks.js'; import { resetAllMocks } from '../src/commands/resetAllMocks.js'; import { restoreAllMocks } from '../src/commands/restoreAllMocks.js'; -import type { BrowserExtension, ElectronMock } from '../src/index.js'; -import type ElectronWorkerService from '../src/service.js'; import mockStore from '../src/mockStore.js'; +import type ElectronWorkerService from '../src/service.js'; let WorkerService: typeof ElectronWorkerService; let instance: ElectronWorkerService | undefined; @@ -41,7 +41,10 @@ describe('before', () => { requestedCapabilities: { 'wdio:electronServiceOptions': {} }, waitUntil: vi.fn().mockResolvedValue(true), }, - firefox: { requestedCapabilities: {}, waitUntil: vi.fn().mockResolvedValue(true) }, + firefox: { + requestedCapabilities: {}, + waitUntil: vi.fn().mockResolvedValue(true), + }, }, isMultiremote: true, instances: ['electron', 'firefox'],