Closed Dulanjala007 closed 4 years ago
in your code you can // @ts-ignore
above the offending line, but in general I should probably look at the types in this library
On Mon, Jun 15, 2020 at 7:32 PM, Gleb Bahmutov notifications@github.com wrote:
in your code you can // @ts-ignore above the offending line, but in general I should probably look at the types in this library
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bahmutov/cypress-svelte-unit-test/issues/131#issuecomment-644154287, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2OZIK4HKC24MFQKSFUXM3RWYSY7ANCNFSM4NZSNWXA .
Thanks for the info, it was missing props property, so i used a local typing to override the ComponentOptions
Need to fix it for https://github.com/bahmutov/svelte-ts-example/blob/master/src/App.spec.ts
:tada: This issue has been resolved in version 3.3.1 :tada:
The release is available on:
npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
Is this a bug report or a feature request?
bug
If this is a bug report, please provide as much info as possible
Argument of type '{ props: { title: string; }; }' is not assignable to parameter of type 'ComponentOptions'. Object literal may only specify known properties, and 'props' does not exist in type 'ComponentOptions'
how should i fix this?