You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test failure due to hard dependency path it test_helper.bash #34
When trying to test the bats-assert module, I was getting this error: bats: /opt/bats-helpers/bats-assert/test/../node_modules/bats-support/load.bash does not exist
I resolved it with sed -i 's/node_modules/../g' /opt/bats-helpers/bats-assert/test/test_helper.bash
This appears to be managed by bats-support and bats-files test_helper.bash scripts with a bit more flexibility that can probably be nearly copy and pasted.
Activity
hyperupcall commentedon Oct 19, 2021
For anyone else with this issue, it is also solvable by doing
This allows the dependency to 'install' (symlink) properly
test/test_helper.bash: Use bats_load_library to load bats-support
martin-schulze-vireso commentedon Oct 22, 2022
Fixed via #49