Skip to content

Commit 47f762a

Browse files
committed
feature: Allow args to be used with the json formatter
1 parent d4b9a1a commit 47f762a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/add-cucumber-preprocessor-plugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ export async function afterRunHandler(config: Cypress.PluginConfigOptions) {
9999
const json = await fs.open(jsonPath, "w");
100100

101101
try {
102-
const child = child_process.spawn(preprocessor.json.formatter, {
102+
const [executable, ...args] = preprocessor.json.formatter.split(' ');
103+
const child = child_process.spawn(executable, args, {
103104
stdio: [messages.fd, json.fd, "inherit"],
104105
});
105106

0 commit comments

Comments
 (0)