Skip to content

Commit

Permalink
debug cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Oct 16, 2023
1 parent 5610c64 commit 5ee7d94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/playwright-runner.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
/* eslint-disable @typescript-eslint/no-explicit-any */
import {spawn} from 'node:child_process';
import {spawn, execSync} from 'node:child_process';
import * as path from 'node:path';
import * as fs from 'node:fs';

Expand Down Expand Up @@ -172,6 +172,7 @@ async function run(nodeBin: string, runCfgPath: string, suiteName: string) {

let result: RunResult;
if (runCfg.Kind === 'playwright-cucumberjs') {
console.log('npm why cucumber: ', execSync('npm why @cucumber/cucumber'))
result = await runCucumber(nodeBin, runCfg);
} else {
result = await runPlaywright(nodeBin, runCfg);
Expand Down

0 comments on commit 5ee7d94

Please sign in to comment.