cypress-testing-library
cypress-testing-library copied to clipboard
eslint testing-library in conflict with cypress-testing-library
I've followed the instructions from testing-library, but no matter what I have, eslint seems to reject each and every function (findByRole, findByLabelText, findByText, findByDisplayValue).
Any idea how to get rid of these?
I've added to commands.ts
import "@testing-library/cypress/add-commands";
in package.json I have
"@testing-library/cypress": "8.0.3",
in tsconfig.json
"compilerOptions": {
"types": ["cypress", "@testing-library/cypress", "node"]
},
"include": ["src", "**/*.ts" ],
in .eslintrc.json
"plugins": [
"@typescript-eslint",
"react-hooks",
"prettier",
"testing-library",
"jest-dom",
"cypress"
],
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:testing-library/react",
"plugin:jest-dom/recommended",
"plugin:cypress/recommended"
],
Same issue - I have commented out "plugin:testing-library/react" for now.