From c6c72a0f114783b09ed3c62f30ec8d334390b389 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 10 May 2022 19:24:36 +0300 Subject: [PATCH] added more tests Signed-off-by: Roman --- src/extensions/__tests__/is-compatible-extension.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/extensions/__tests__/is-compatible-extension.test.ts b/src/extensions/__tests__/is-compatible-extension.test.ts index b360c310dd..f1af499da0 100644 --- a/src/extensions/__tests__/is-compatible-extension.test.ts +++ b/src/extensions/__tests__/is-compatible-extension.test.ts @@ -60,6 +60,14 @@ describe("Extension/App versions compatibility check", () => { }))).toBeFalsy(); // extension with lens@5.5 is not compatible with app@6.0 }); + it("is compatible with lensEngine with prerelease", () => { + expect(isCompatibleExtension({ + appSemVer: semver.coerce("5.5.0-alpha.0"), + })(getExtensionManifestMock({ + lensEngine: "^5.4.0-alpha.0", + }))).toBeTruthy(); + }); + describe("supported formats for manifest.engines.lens", () => { it("short version format for engines.lens", () => { expect(isCompatibleExtension({