Skip to content

Commit

Permalink
fix: update type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed Sep 9, 2024
1 parent 81fbdd7 commit 3d616fb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/wdio-electron-service/test/launcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/wdio-electron-service/test/mock.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion packages/wdio-electron-service/test/mockStore.spec.ts
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
9 changes: 6 additions & 3 deletions packages/wdio-electron-service/test/service.spec.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 3d616fb

Please sign in to comment.