Skip to content

Commit

Permalink
test(core): add scenario to reproduce #66
Browse files Browse the repository at this point in the history
  • Loading branch information
mxro authored and JamieMason committed May 29, 2022
1 parent b6b9297 commit e26ab69
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions test/scenarios/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,38 @@ export const scenarios = {
{},
);
},
/**
* Variation of the previous scenario in a nested workspace.
*
*/
dependentDoesNotMatchNestedWorkspaceVersion() {
return createScenario(
[
{
path: 'workspaces/a/packages/a/package.json',
before: wrapper('a', ['c@0.1.0']),
after: wrapper('a', ['c@0.0.1']),
},
{
path: 'workspaces/b/packages/b/package.json',
before: wrapper('b', [], ['c@0.2.0']),
after: wrapper('b', [], ['c@0.0.1']),
},
{
path: 'workspaces/b/packages/c/package.json',
before: wrapper('c', [], [], [], {
name: 'c',
version: '0.0.1',
}),
after: wrapper('c', [], [], [], {
name: 'c',
version: '0.0.1',
}),
},
],
{},
);
},
/**
* Only `dependencies` are checked
* The semver range `~` should be used
Expand Down

0 comments on commit e26ab69

Please sign in to comment.