-
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.
start adding tests and update config setup
- Loading branch information
1 parent
ea09245
commit c099471
Showing
5 changed files
with
49 additions
and
23 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { after, before, beforeEach, describe, it } from 'node:test'; | ||
|
||
/** | ||
* This test suite is more of an integration test than a unit test. | ||
* It uses the real file system and git repo but mocks the GitHub API client | ||
* It spins up verdaccio to test updating package metadata locally | ||
* | ||
* Since all of these tests are sharing the same git tree, we're running concurrently to avoid conflicts (mostly around duplicate tag names) | ||
*/ | ||
void describe('ReleaseLifecycleManager', { concurrency: 1 }, () => { | ||
before(async () => { | ||
await import('../start_npm_proxy.js'); | ||
}); | ||
|
||
after(async () => { | ||
await import('../stop_npm_proxy.js'); | ||
}); | ||
|
||
beforeEach(async () => { | ||
// checkout test branch | ||
// add changeset that releases minor of package A | ||
// run changeset version && publish | ||
// add changeset that releases minor of package A and B | ||
// run changeset version && publish | ||
}); | ||
void describe('deprecateRelease', () => { | ||
void it('deprecates expected versions and updates dist-tags', async () => {}); | ||
|
||
void it('does not update dist-tags when deprecating a past release'); | ||
}); | ||
void describe('restoreRelease', () => { | ||
void it('un-deprecates expected versions and updates dist-tags', async () => {}); | ||
|
||
void it('does not update dist-tags when restoring a past release', async () => {}); | ||
}); | ||
}); |
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