Skip to content

Commit

Permalink
fix: use $BATS_RUN_TMPDIR for $BATS_MOCK_TMPDIR
Browse files Browse the repository at this point in the history
Re-running incomplete tests with bats-mock exhibited inconsistent test
results.
  • Loading branch information
KlfJoat committed Jan 3, 2024
1 parent 058e595 commit 066295f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stub.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BATS_MOCK_TMPDIR="${BATS_TMPDIR}"
BATS_MOCK_TMPDIR="${BATS_RUN_TMPDIR}"
BATS_MOCK_BINDIR="${BATS_MOCK_TMPDIR}/bin"

BATS_MOCK_REAL_mkdir=$(which mkdir)
Expand Down

0 comments on commit 066295f

Please sign in to comment.