From cbdfe9c476190450b31dca9bbf3418e797a4a005 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Mon, 8 May 2023 12:08:43 -0400 Subject: [PATCH] fix: ignore title position --- cypress/e2e/title-position.cy.js | 8 +++++--- package.json | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/title-position.cy.js b/cypress/e2e/title-position.cy.js index 4ac0c02..1a6d211 100644 --- a/cypress/e2e/title-position.cy.js +++ b/cypress/e2e/title-position.cy.js @@ -6,9 +6,11 @@ import '../../src' describe('Positional title arguments', () => { const list = [['foo', 'main']] - it.each(list)('title is %1 and %0', function (a, b) { - expect(a, 'first').to.equal(a) - expect(b, 'second').to.equal(b) + // https://github.com/bahmutov/cypress-each/issues/76 + // @ts-ignore + it.each(list)('title is %1 and %0', (a, b) => { + expect(a, 'first').to.equal('foo') + expect(b, 'second').to.equal('main') // @ts-ignore expect(this.test.title, 'computed test title').to.equal( 'title is main and foo', diff --git a/package.json b/package.json index 4416fb3..2b0ea8b 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "src" ], "scripts": { - "lint": "tsc --pretty --allowJs --strict --noEmit src/index.js cypress/**/*.ts", + "lint": "tsc --pretty --allowJs --strict --noEmit src/index.js cypress/**/*.js cypress/**/*.ts", "test": "cypress-expect run --expect cypress/expected.json", "semantic-release": "semantic-release" },