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