Skip to content

Commit 3a32e86

Browse files
committed
test(scripts): copy option helper into OpenGrep fixture
1 parent 71bfc4a commit 3a32e86

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎test/scripts/run-opengrep.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ function writeFile(filePath: string, content: string): void {
1919
function copyRunOpengrepFiles(repo: string): void {
2020
const scriptSource = path.resolve("scripts/run-opengrep.sh");
2121
const helperSource = path.resolve("scripts/lib/merge-head-diff-base.mjs");
22+
const argUtilsSource = path.resolve("scripts/lib/arg-utils.runtime.mjs");
2223
writeFile(path.join(repo, "scripts/run-opengrep.sh"), fs.readFileSync(scriptSource, "utf8"));
2324
writeFile(
2425
path.join(repo, "scripts/lib/merge-head-diff-base.mjs"),
2526
fs.readFileSync(helperSource, "utf8"),
2627
);
28+
writeFile(
29+
path.join(repo, "scripts/lib/arg-utils.runtime.mjs"),
30+
fs.readFileSync(argUtilsSource, "utf8"),
31+
);
2732
fs.chmodSync(path.join(repo, "scripts/run-opengrep.sh"), 0o755);
2833
}
2934

0 commit comments

Comments
 (0)