Skip to content

Commit 6ec0991

Browse files
clydinalexeagle
authored andcommitted
test: fix prelease CLI E2E check
1 parent 3b46107 commit 6ec0991

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/legacy-cli/e2e/utils/project.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ export function useNg4() {
500500

501501
export async function isPrereleaseCli() {
502502
const angularCliPkgJson = JSON.parse(await readFile('node_modules/@angular/cli/package.json'));
503+
const pre = prerelease(angularCliPkgJson.version);
503504

504-
return prerelease(angularCliPkgJson.version).length > 0;
505+
return pre && pre.length > 0;
505506
}

0 commit comments

Comments
 (0)