UNPKG

quoad

Version:

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

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