bahmutov / cypress-svelte-unit-test

Unit testing Svelte components in Cypress E2E test runner
162 stars 21 forks source link

missing props type parameter on mount function #131

Closed Dulanjala007 closed 4 years ago

Dulanjala007 commented 4 years ago

Is this a bug report or a feature request?

bug

If this is a bug report, please provide as much info as possible

how should i fix this?

bahmutov commented 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

Dulanjala007 commented 4 years ago

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

bahmutov commented 4 years ago

Need to fix it for https://github.com/bahmutov/svelte-ts-example/blob/master/src/App.spec.ts

bahmutov commented 4 years ago

:tada: This issue has been resolved in version 3.3.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: