[FIX] Omition on previous integ of upgrade command compare version based on integer result (#10864)
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
import { EachTestingContext } from 'twenty-shared';
|
||||
|
||||
import { compareVersionMajorAndMinor } from 'src/utils/version/compare-version-minor-and-major';
|
||||
import {
|
||||
CompareVersionMajorAndMinorReturnType,
|
||||
compareVersionMajorAndMinor,
|
||||
} from 'src/utils/version/compare-version-minor-and-major';
|
||||
|
||||
type IsSameVersionTestCase = EachTestingContext<{
|
||||
version1: string;
|
||||
version2: string;
|
||||
expected?: ReturnType<typeof compareVersionMajorAndMinor>;
|
||||
expected?: CompareVersionMajorAndMinorReturnType;
|
||||
expectToThrow?: boolean;
|
||||
}>;
|
||||
describe('is-same-major-and-minor-version', () => {
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
import * as semver from 'semver';
|
||||
|
||||
type CompareVersionMajorAndMinorReturnType = 'lower' | 'equal' | 'higher';
|
||||
export type CompareVersionMajorAndMinorReturnType =
|
||||
| 'lower'
|
||||
| 'equal'
|
||||
| 'higher';
|
||||
export function compareVersionMajorAndMinor(
|
||||
rawVersion1: string,
|
||||
rawVersion2: string,
|
||||
|
||||
Reference in New Issue
Block a user