Skip to content

Commit 9de212c

Browse files
committed
test(pr): provide ripgrep fixture command
1 parent 5344149 commit 9de212c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎test/scripts/pr-review-artifact-validation.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ function runValidation(
114114
'fixture_root="$2"',
115115
'enter_worktree() { cd "$fixture_root"; }',
116116
'require_artifact() { [ -s "$1" ]; }',
117+
'rg() { case " $* " in *" -F "*) grep "$@";; *) grep -E "$@";; esac; }',
117118
options.guardFailure
118119
? "review_guard() { REVIEW_MODE=pr; echo 'review head guard failed'; return 1; }"
119120
: `review_guard() { REVIEW_MODE=${options.mode ?? "pr"}; }`,
@@ -139,6 +140,7 @@ function runReviewShellFunction(fixtureRoot: string, invocation: string) {
139140
'fixture_root="$2"',
140141
'enter_worktree() { cd "$fixture_root"; }',
141142
'require_artifact() { [ -s "$1" ]; }',
143+
'rg() { case " $* " in *" -F "*) grep "$@";; *) grep -E "$@";; esac; }',
142144
"mark_pr_operation_side_effects_started() { :; }",
143145
invocation,
144146
].join("\n"),

0 commit comments

Comments
 (0)