diff options
author | Jason Karns <jason.karns@gmail.com> | 2023-02-23 16:57:26 +0300 |
---|---|---|
committer | Jason Karns <jason.karns@gmail.com> | 2023-02-23 16:58:50 +0300 |
commit | effe6f58f839404f5935154b28565d0c4adf6977 (patch) | |
tree | 636c4449068d49c89b45648d43af18d50a327338 | |
parent | 1950e8cb6cfa464a3b57b1dbc21e3413b3600e94 (diff) |
set bats_lib_path in test helper
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.
-rw-r--r-- | test/test_helper.bash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_helper.bash b/test/test_helper.bash index beb9298..8d476a8 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -1,4 +1,5 @@ # Load dependencies. +BATS_LIB_PATH=$PWD/node_modules:${BATS_LIB_PATH-} bats_load_library 'bats-support' # Load library. |