Skip to content

Commit

Permalink
fix(provider): fix npm version provider to update package-lock.json a…
Browse files Browse the repository at this point in the history
…nd npm-shrinkwrap.json if they exist

closes #804
  • Loading branch information
davidlday authored and Lee-W committed Aug 26, 2023
1 parent 6063338 commit b94e1e6
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions tests/test_version_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,18 +279,12 @@ def test_scm_provider_default_without_commits_and_tags(config: BaseConfig):


@pytest.mark.parametrize(
"pkg_lock_content,pkg_lock_expected,pkg_shrinkwrap_content,pkg_shrinkwrap_expected",
(
(None, None, None, None),
(NPM_LOCKFILE_JSON, NPM_LOCKFILE_EXPECTED, None, None),
(None, None, NPM_LOCKFILE_JSON, NPM_LOCKFILE_EXPECTED),
(
NPM_LOCKFILE_JSON,
NPM_LOCKFILE_EXPECTED,
NPM_LOCKFILE_JSON,
NPM_LOCKFILE_EXPECTED,
),
),
"pkg_shrinkwrap_content, pkg_shrinkwrap_expected",
((NPM_LOCKFILE_JSON, NPM_LOCKFILE_EXPECTED), (None, None)),
)
@pytest.mark.parametrize(
"pkg_lock_content, pkg_lock_expected",
((NPM_LOCKFILE_JSON, NPM_LOCKFILE_EXPECTED), (None, None)),
)
def test_npm_provider(
config: BaseConfig,
Expand Down

0 comments on commit b94e1e6

Please sign in to comment.