mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[LOCAL] fix GHA publishTemplate verification
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user