Skip to content

Commit

Permalink
chore: use match to get filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldis committed Sep 19, 2023
1 parent 5d75245 commit 76b1e2b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions e2e/cypress-compatibility/__tests__/run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ describe(`Cypress ${cypressVersion} compatibility`, () => {
});
});

it("should have the right cypress version", async () => {
expect(result.config).toMatchObject({
version: expect.stringContaining(`${cypressVersion}`),
});
});

it("should have compatible config", async () => {
expect(result.config).toMatchObject({
video: config.video,
version: expect.stringContaining(`${cypressVersion}`),
});
});

Expand All @@ -50,7 +55,7 @@ describe(`Cypress ${cypressVersion} compatibility`, () => {
// @ts-ignore
const actual = result.runs.find(
// @ts-ignore
(run) => run.spec.name === spec
(run) => run.spec.name.match(`${spec}`)
);

// @ts-ignore
Expand Down

0 comments on commit 76b1e2b

Please sign in to comment.