Skip to content

Commit

Permalink
fix: ignore title position
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed May 8, 2023
1 parent 9c9a6a1 commit cbdfe9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions cypress/e2e/title-position.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit cbdfe9c

Please sign in to comment.