[LOCAL] fix GHA publishTemplate verification

This commit is contained in:
Blake Friedman
2024-11-21 22:37:02 +00:00
parent 605e2e443b
commit 3287014ee9
2 changed files with 14 additions and 2 deletions
@@ -80,6 +80,17 @@ describe('#publishTemplate', () => {
describe('#verifyPublishedTemplate', () => {
beforeEach(jest.clearAllMocks);
it("fixes versions prefixed with 'v'", async () => {
const dirtyVersion = 'v0.76.0';
const cleanVersion = '0.76.0';
await verifyPublishedTemplate(dirtyVersion);
expect(mockGetNpmPackageInfo).toHaveBeenLastCalledWith(
'@react-native-community/template',
cleanVersion,
);
});
it("waits on npm updating for version and not 'latest'", async () => {
const NOT_LATEST = false;
mockGetNpmPackageInfo