UNPKG

quoad

Version:

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

28 lines (24 loc) 684 B
import { spawner, SpawnResult } from '@integration/testing-tools'; import * as path from 'path'; const jasmineExecutable = path.resolve( require.resolve('jasmine/package.json'), '..', 'bin', 'jasmine.js', ); const jasmineSpawner = spawner( jasmineExecutable, { cwd: path.resolve(__dirname, '..') }, ); /** * @see https://jasmine.github.io/setup/nodejs.html * @param {string[]} params */ export function jasmine(...params: string[]): Promise<SpawnResult> { return jasmineSpawner( ...params, '--random=false', '--reporter=@serenity-js/jasmine', `--require=${ path.resolve(__dirname, '../examples/setup.js') }`, ); }