UNPKG

quoad

Version:

Serenity/JS: Next generation acceptance testing library for modern web applications.

21 lines (17 loc) 434 B
import { spawner, SpawnResult } from '@integration/testing-tools'; import * as path from 'path'; const wdioExecutable = path.resolve( require.resolve('@wdio/cli/package.json'), '..', 'bin', 'wdio', ); const wdioSpawner = spawner( wdioExecutable, { cwd: path.resolve(__dirname, '..') }, ); export function wdio(...params: string[]): Promise<SpawnResult> { return wdioSpawner( ...params, ); }