Skip to content

Test failure due to hard dependency path it test_helper.bash #34

Closed

Description

@flickerfly

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

  1. hyperupcall commented on Oct 19, 2021

    @hyperupcall

    For anyone else with this issue, it is also solvable by doing

    cd /path/to/bats-support
    yarn link # can also do 'npm link'
    
    
    cd /path/to/bats-assert
    yarn link bats-support # can also do `npm link bats-support`

    This allows the dependency to 'install' (symlink) properly

  2. martin-schulze-vireso commented on Oct 22, 2022

    @martin-schulze-vireso
    Member

    Fixed via #49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions