Skip to content

Commit

Permalink
set bats_lib_path in test helper
Browse files Browse the repository at this point in the history
The installation mechanism of dependencies is unique to a project,
and so the configuration of BATS_LIB_PATH should be owned by the test
suite, not assumed set as an outside env var.
  • Loading branch information
jasonkarns committed Feb 23, 2023
1 parent 1950e8c commit effe6f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_helper.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Load dependencies.
BATS_LIB_PATH=$PWD/node_modules:${BATS_LIB_PATH-}
bats_load_library 'bats-support'

# Load library.
Expand Down

0 comments on commit effe6f5

Please sign in to comment.