Skip to content

Commit

Permalink
fix: fix security issue (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorigam authored Dec 12, 2024
1 parent 1f8b872 commit 1284f72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/src/config/hooks/ExtensionHook.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as fs from 'node:fs';
import * as path from 'node:path';
import * as util from 'node:util';
import { exec } from 'node:child_process';
import { execFile } from 'node:child_process';
import { BeforeAll } from '@cucumber/cucumber';

const asyncExec = util.promisify(exec);
const asyncExecFile = util.promisify(execFile);

BeforeAll(async function () {
const distPath = path.resolve(__dirname, '..', '..', '..', 'veworld-dist');
Expand All @@ -20,5 +20,5 @@ BeforeAll(async function () {
'..',
'veworld-dist.zip',
);
await asyncExec(`unzip -o ${zipPath}`);
await asyncExecFile('unzip', ['-o', zipPath]);
});

0 comments on commit 1284f72

Please sign in to comment.