Mocking is, even with bats, not too comfortable. Subsequent runs of the tests are not mutually independent leading to tests sometimes failing or passing without apparent reason. Feeding input to the jq script in tests is awkward and a syntactical plague if it works at all. Find another testing library, scrap the tests or abandon bash.
Mocking is, even with bats, not too comfortable. Subsequent runs of the tests are not mutually independent leading to tests sometimes failing or passing without apparent reason. Feeding input to the jq script in tests is awkward and a syntactical plague if it works at all. Find another testing library, scrap the tests or abandon bash.