Skip to content

Commit

Permalink
Yarn: add integration test for missing lockfile
Browse files Browse the repository at this point in the history
Adding test for a yarn project which is missing a lockfile. This results
in failure in cachi2.

STONEBLD-2075

Signed-off-by: ejegrova <[email protected]>
  • Loading branch information
ejegrova committed Jan 8, 2024
1 parent c2e5f59 commit 60df52b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/integration/test_yarn.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@
),
id="yarn_incorrect_checksum",
),
pytest.param(
utils.TestParameters(
repo="https://github.com/cachito-testing/cachi2-yarn-berry.git",
ref="c1da60842aa94aaab8ed48122dc44522bd2a5ab1",
packages=({"path": ".", "type": "yarn"},),
check_output=False,
check_deps_checksums=False,
check_vendor_checksums=False,
expected_exit_code=2,
expected_output="Yarn lockfile 'yarn_non_existent.lock' missing, refusing to continue",
),
id="yarn_no_lockfile",
),
],
)
def test_yarn_packages(
Expand Down

0 comments on commit 60df52b

Please sign in to comment.