From 712efaf44abb7cb414296a775df22cf90dd777a4 Mon Sep 17 00:00:00 2001 From: Lorenzo Sciandra Date: Wed, 1 Feb 2023 13:15:42 +0000 Subject: [PATCH] [LOCAL] remove too strict version controls --- scripts/__tests__/version-utils-test.js | 27 ------------------------- 1 file changed, 27 deletions(-) diff --git a/scripts/__tests__/version-utils-test.js b/scripts/__tests__/version-utils-test.js index 0dd087e20b01ba..493be638bc7aef 100644 --- a/scripts/__tests__/version-utils-test.js +++ b/scripts/__tests__/version-utils-test.js @@ -141,15 +141,6 @@ describe('version-utils', () => { expect(prerelease).toBe('rc.4'); }); - it('should reject pre-release version with patch != 0', () => { - function testInvalidVersion() { - parseVersion('0.66.3-rc.4', 'release'); - } - expect(testInvalidVersion).toThrowErrorMatchingInlineSnapshot( - `"Version 0.66.3-rc.4 is not valid for Release"`, - ); - }); - it('should reject pre-release version from tag with random prerelease pattern', () => { function testInvalidVersion() { parseVersion('v0.66.0-something_invalid', 'release'); @@ -228,15 +219,6 @@ describe('version-utils', () => { expect(prerelease).toBe('rc.0'); }); - it('should reject dryrun with prerelease . version with patch different from 0', () => { - function testInvalidFunction() { - parseVersion('0.20.3-rc.0', 'dry-run'); - } - expect(testInvalidFunction).toThrowErrorMatchingInlineSnapshot( - `"Version 0.20.3-rc.0 is not valid for dry-runs"`, - ); - }); - it('should parse dryrun with prerelease - version', () => { const {version, major, minor, patch, prerelease} = parseVersion( '0.20.0-rc-0', @@ -249,15 +231,6 @@ describe('version-utils', () => { expect(prerelease).toBe('rc-0'); }); - it('should reject dryrun with prerelease - version with patch different from 0', () => { - function testInvalidFunction() { - parseVersion('0.20.3-rc-0', 'dry-run'); - } - expect(testInvalidFunction).toThrowErrorMatchingInlineSnapshot( - `"Version 0.20.3-rc-0 is not valid for dry-runs"`, - ); - }); - it('should parse dryrun with main version', () => { const {version, major, minor, patch, prerelease} = parseVersion( '1000.0.0',