Skip to content

Commit

Permalink
test(version): Ensure prompt default preserves prereleaseId
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Apr 24, 2019
1 parent c1aafe7 commit 090e180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/version/__tests__/version-bump-prerelease.test.js
Expand Up @@ -152,8 +152,8 @@ test("independent version prerelease does not bump on every unrelated change", a
// simulate choices for pkg-a then pkg-b
prompt.mockChoices("patch", "PRERELEASE");
prompt.input.mockImplementationOnce((msg, cfg) =>
// a convoluted way of entering "bumps" at the prompt
Promise.resolve(cfg.filter("bumps"))
// the _existing_ "bumps" prerelease ID should be preserved
Promise.resolve(cfg.filter())
);

await lernaVersion(cwd)();
Expand Down

0 comments on commit 090e180

Please sign in to comment.