You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code leads to a false-positive since a callback is passed to a function named test.
The warning disappears when the test function is renamed to something else.
jest: 27.5.1
eslint-plugin-jest: 26.1.4
import{defineFeature,loadFeature}from"jest-cucumber";constfeature=loadFeature("some/feature");defineFeature(feature,(test)=>{test("A scenario",({ given, when, then })=>{});});
The text was updated successfully, but these errors were encountered:
This is a duplicate of #556 - I've got a draft PR up that should be landed "soon", but I'm the meantime you can either call the method something else or not run eslint-plugin-jest on these files per our readme.
This code leads to a false-positive since a callback is passed to a function named
test
.The warning disappears when the
test
function is renamed to something else.jest: 27.5.1
eslint-plugin-jest: 26.1.4
The text was updated successfully, but these errors were encountered: