mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
test: add tests for get-used-version task
This commit is contained in:
@@ -53,6 +53,7 @@ export async function getUsedVersion(path: PathLike, dependency: string): Promis
|
||||
export async function getUsedVersionMajorMinor(path: PathLike, dependency: string): Promise<string> {
|
||||
const versionMatch = (await getUsedVersion(path, dependency)).match(/([0-9]+\.[0-9]+)\.[0-9]+/);
|
||||
|
||||
// istanbul ignore if
|
||||
if (versionMatch === null) {
|
||||
throw new Error(`Used version of '${dependency}' of project in '${path}' could not be determined.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user