testcafe-react-selectors
testcafe-react-selectors copied to clipboard
Typescript ReactSelector support withKey function
I have checked if there was already a similar reported issue but I haven't find anything so far, I would like to report that withKey()
function gives the following error.
import { ReactSelector } from 'testcafe-react-selectors';
const example = ReactSelector('Grid').withKey('example');
TS2339: Property 'withKey' does not exist on type 'Selector'.
Versions:
~ node --version
v8.16.2
~ npm --version
6.4.1
~ cat package.json | grep "testcafe-react-selectors"
"testcafe-react-selectors": "^4.0.0",
Hello @gothraven,
I was not able to reproduce this behavior. Could you please specify the testcafe version you are using?
I'll drop all testcafe related packages if any of them would help
~ cat package.json | grep "testcafe"
"eslint-plugin-testcafe": "^0.2.1",
"testcafe": "^1.2.1",
"testcafe-react-selectors": "^4.0.0",
Hi @gothraven ,
Please update to the latest TestCafe version. If it doesn't help, provide us with a simple test example on which we will be able to reproduce the issue.