UNPKG

@wdio/electron-utils

Version:

Utilities for WebdriverIO Electron Service

36 lines (28 loc) 761 B
import { expect, describe, it, vi } from 'vitest'; import * as index from '../src/index.js'; vi.mock('../src/getAppBuildInfo', () => { return { getAppBuildInfo: vi.fn(), }; }); vi.mock('../src/getBinaryPath', () => { return { getBinaryPath: vi.fn(), }; }); vi.mock('../src/getElectronVersion', () => { return { getElectronVersion: vi.fn(), }; }); describe('index', () => { it('should export getAppBuildInfo', () => { expect(index.getAppBuildInfo).toEqual(expect.any(Function)); }); it('should export getBinaryPath', () => { expect(index.getBinaryPath).toEqual(expect.any(Function)); }); it('should export getElectronVersion', () => { expect(index.getElectronVersion).toEqual(expect.any(Function)); }); });