-1

I am writing custom command in commands.ts file using Cypress and get the following error:

Argument of type '(this: Context, query: any) => Bluebird' is not assignable to parameter of type 'CommandFn<"executeSQLQuery">'.

Type 'Bluebird' is not assignable to type 'void | Chainable'.
Type 'Bluebird' is missing the following properties from type 'Chainable': and, as, blur, check, and 92 more.

My code in custom command is shown here:

enter image description here

enter image description here

I am expecting that custom command should return the result of the query.

2

0