I'm trying to execute the test script found here https://www.npmjs.com/package/@applitools/eyes-testcafe But am receiving an error on typescript transpile. The script runs succesfully if saved as a .js.
test/specs/applitoolsExample.ts:10:19 - error TS2345: Argument of type '{ appName: string; testName: string; browser: { width: number; height: number; name: "firefox"; }[]; t: TestController; }' is not assignable to parameter of type 'OpenOptions'.
Property 'accessibilityValidation' is missing in type '{ appName: string; testName: string; browser: { width: number; height: number; name: "firefox"; }[]; t: TestController; }' but required in type 'OpenOptions'.
10 await eyes.open({
~
11 appName: "Hello World!",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
14 t,
~~~~~~
15 });
~~~
node_modules/@applitools/eyes-testcafe/ts/eyes.ts:8:9
8 accessibilityValidation: AccessibilitySettings
~~~~~~~~~~~~~~~~~~~~~~~
'accessibilityValidation' is declared here.
Found 1 error.
I am new to js, ts and testcafe so please assume nothing. Can anyone advise how to make Applitools work in testcafe, with typescript?