Files
euchre_camp/e2e/cucumber-e2e.test.ts

26 lines
605 B
TypeScript

import { test } from '@playwright/test';
import { execSync } from 'child_process';
test.describe('Cucumber E2E Tests', () => {
test('Run all Cucumber feature files', async () => {
const baseURL = process.env.CI
? 'https://euchre-ci.notsosm.art'
: 'http://localhost:3000';
const result = execSync(
'npx cucumber-js --config e2e/cucumber/cucumber.config.ts',
{
encoding: 'utf-8',
stdio: 'pipe',
env: {
...process.env,
BASE_URL: baseURL,
},
cwd: process.cwd(),
}
);
console.log(result);
});
});