-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72679d6
commit 2480023
Showing
3 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ import { runVersion } from '../version_runner.js'; | |
import { runPublish } from '../publish_runner.js'; | ||
import { ReleaseLifecycleManager } from './release_lifecycle_manager.js'; | ||
import { GithubClient } from './github_client.js'; | ||
import assert from 'node:assert'; | ||
|
||
/** | ||
* This test suite is more of an integration test than a unit test. | ||
|
@@ -41,11 +42,17 @@ void describe('ReleaseLifecycleManager', async () => { | |
* It seeds the local npm proxy with a few releases of these packages. | ||
* When its done, the state of the git refs npm dist-tags should be as follows: | ||
* | ||
* minor bump of cantaloupe only ● <- HEAD, [email protected], cantaloupe@latest | ||
* third release commit ● <- HEAD, [email protected], cantaloupe@latest | ||
* | | ||
* minor bump of cantaloupe and platypus ● <- [email protected], [email protected], platypus@latest | ||
* minor bump of cantaloupe only ● | ||
* | | ||
* minor bump of cantaloupe and platypus ● <- [email protected], [email protected] | ||
* second release commit ● <- [email protected], [email protected], platypus@latest | ||
* | | ||
* minor bump of cantaloupe and platypus ● | ||
* | | ||
* first release commit ● <- [email protected], [email protected] | ||
* | | ||
* minor bump of cantaloupe and platypus ● | ||
* | | ||
* initial commit ● <- [email protected], [email protected] | ||
* | ||
|
@@ -136,10 +143,15 @@ void describe('ReleaseLifecycleManager', async () => { | |
npmClient | ||
); | ||
await releaseLifecycleManager.deprecateRelease('cantaloupe is rotten'); | ||
// switch back to the original branch | ||
await gitClient.switchToBranch('main'); | ||
|
||
// expect latest of cantaloupe to point back to 1.2.0 and 1.3.0 to be marked deprecated | ||
// platypus should not be modified | ||
// const await npmClient.getPackageInfo(cantaloupePackageName); | ||
|
||
const { 'dist-tags': distTags, deprecated } = | ||
await npmClient.getPackageInfo(`${cantaloupePackageName}@1.3.0`); | ||
assert.equal(distTags.latest, '1.2.0'); | ||
assert.equal(deprecated, 'cantaloupe is rotten'); | ||
}); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters