parent
b93651a24e
commit
d5718054c0
3 changed files with 13 additions and 7 deletions
|
|
@ -1,7 +1,13 @@
|
|||
import { vi } from 'vitest'
|
||||
export const install = vi.fn(() => new Promise<void>((resolve) => resolve()))
|
||||
export const start = vi.fn(() => new Promise((resolve) => resolve({
|
||||
kill : vi.fn(),
|
||||
stdout : { pipe: vi.fn().mockReturnValue({ pipe : vi.fn() }) },
|
||||
stderr : { pipe: vi.fn().mockReturnValue({ pipe : vi.fn() }) }
|
||||
|
||||
const install = vi.fn(() => new Promise<void>((resolve) => resolve()))
|
||||
const start = vi.fn(() => new Promise((resolve) => resolve({
|
||||
kill: vi.fn(),
|
||||
stdout: { pipe : vi.fn().mockReturnValue({ pipe : vi.fn() }) },
|
||||
stderr: { pipe : vi.fn().mockReturnValue({ pipe : vi.fn() }) }
|
||||
})))
|
||||
|
||||
export default {
|
||||
install,
|
||||
start
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import logger from '@wdio/logger'
|
|||
import { isCloudCapability } from '@wdio/config'
|
||||
import type { Capabilities, Options, Services } from '@wdio/types'
|
||||
|
||||
import * as SeleniumStandalone from 'selenium-standalone'
|
||||
import SeleniumStandalone from 'selenium-standalone'
|
||||
|
||||
import { getFilePath, hasCapsWithSupportedBrowser } from './utils.js'
|
||||
import type { SeleniumStandaloneOptions } from './types'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import path from 'node:path'
|
||||
import fs from 'node:fs'
|
||||
import * as SeleniumStandalone from 'selenium-standalone'
|
||||
import SeleniumStandalone from 'selenium-standalone'
|
||||
import { describe, expect, test, vi, beforeEach } from 'vitest'
|
||||
|
||||
import SeleniumStandaloneLauncher from '../src/launcher.js'
|
||||
|
|
|
|||
Loading…
Reference in a new issue