From f34bbcf3e7574acb62c6fddccf37b5545fe3a7a0 Mon Sep 17 00:00:00 2001 From: Andrew Goldis Date: Tue, 19 Sep 2023 15:11:39 -0700 Subject: [PATCH] chore: test cypress version --- e2e/cypress-13-demo/__tests__/run.test.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/e2e/cypress-13-demo/__tests__/run.test.ts b/e2e/cypress-13-demo/__tests__/run.test.ts index 6d15a11..3fd1493 100644 --- a/e2e/cypress-13-demo/__tests__/run.test.ts +++ b/e2e/cypress-13-demo/__tests__/run.test.ts @@ -12,10 +12,9 @@ const testSpecs = [ ]; let result: any = null; -describe(`Cypress ${ - // eslint-disable-next-line - process.env.CURRENTS_USE_CYPRESS_VERSION ?? 13 -} compatibility`, () => { +// eslint-disable-next-line +const cypressVersion = process.env.CURRENTS_USE_CYPRESS_VERSION ?? 13; +describe(`Cypress ${cypressVersion} compatibility`, () => { jest.setTimeout(60 * 1000 * 5); beforeAll(async () => { @@ -37,7 +36,7 @@ describe(`Cypress ${ it("should have compatible config", async () => { expect(result.config).toMatchObject({ video: config.video, - version: expect.stringContaining("13."), + version: expect.stringContaining(`${cypressVersion}`), }); });