You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('throws if a tag matching the current version does not exist',async()=>{
72
+
it("flags the package as having been changed since its latest release if a tag matching the current version exists and changes have been made to the package's directory since the tag",async()=>{
'The package some-package has no Git tag for its current version 1.0.0 (expected "v1.0.0"), so this tool is unable to determine whether it should be included in this release. You will need to create a tag for this package in order to proceed.',
93
-
),
94
-
);
91
+
expect(pkg).toMatchObject({
92
+
hasChangesSinceLatestRelease: true,
93
+
});
95
94
});
96
95
97
-
it("flags the package as having been changed since its latest release if a tag matching the current version exists and changes have been made to the package's directory since the tag",async()=>{
96
+
it("does not flag the package as having been changed since its latest release if a tag matching the current version exists, but changes have not been made to the package's directory since the tag",async()=>{
it("does not flag the package as having been changed since its latest release if a tag matching the current version exists, but changes have not been made to the package's directory since the tag",async()=>{
120
+
it('flags the package as having been changed since its latest release if a tag matching the current version does not exist',async()=>{
'The package @scope/workspace-package has no Git tag for its current version 1.0.0 (expected "v1.0.0"), so this tool is unable to determine whether it should be included in this release. You will need to create a tag for this package in order to proceed.',
164
+
),
165
+
);
164
166
});
165
167
});
166
168
167
169
describe('readMonorepoWorkspacePackage',()=>{
168
170
it('returns information about the file structure of the package located at the given directory',async()=>{
'The workspace package workspace-package has no Git tag for its current version 1.0.0 (expected "[email protected]"), and the root package root-package has no Git tag for its current version 5.0.0 (expected "v5.0.0"), so this tool is unable to determine whether the workspace package should be included in this release. You will need to create tags for both of these packages in order to proceed.',
239
-
),
240
-
);
241
-
});
242
-
243
221
it("flags the package as having been changed since its latest release if a tag matching the package name + version exists and changes have been made to the package's directory since the tag",async()=>{
it("does not flag the package as having been changed since its latest release if a tag matching the package name + version exists, but changes have not been made to the package's directory since the tag",async()=>{
it("flags the package as having been changed since its latest release if a tag matching 'v' + the root package version exists instead of the package name + version, and changes have been made to the package's directory since the tag",async()=>{
it("does not flag the package as having been changed since its latest release if a tag matching 'v' + the root package version exists instead of the package name + version, but changes have not been made to the package's directory since the tag",async()=>{
it("flags the package as having been changed since its latest release if a tag matching neither the package name + version nor 'v' + the root package version exists",async()=>{
344
+
it('flags the package as having been changed since its latest release if the project has no tags',async()=>{
'WARNING: Could not determine changes for workspace package @scope/workspace-package version 1.0.0 based on Git tag "@scope/[email protected]"; using tag for root package root-package version 5.0.0, "v5.0.0", instead.\n',
392
+
]);
393
+
});
394
+
395
+
it("throws if the project has tags, but neither a tag matching the package name + version nor 'v' + the root package version exists",async()=>{
'The current release of workspace package @scope/workspace-package, 1.0.0, has no corresponding Git tag "@scope/[email protected]", and the current release of root package root-package, 5.0.0, has no tag "v5.0.0". Hence, this tool is unable to know whether the workspace package changed and should be included in this release. You will need to create tags for both of these packages in order to proceed.',
0 commit comments