Closed Maxim-Mazurok closed 2 years ago
hey! that makes quite sense. Fancy to open up a PR with the fix?
hey! that makes quite sense. Fancy to open up a PR with the fix?
I believe that my colleague @esyw has one on the way :)
:tada: This issue has been resolved in version 5.8.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 6.6.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 5.8.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Describe the bug A clear and concise description of what the bug is.
Currently, when using this package, it always assumes that the store is of type
any
. And in5.6.2
that we're using it's hardcoded to be{}
by default with no option to override:This is from 5.6.2:
And in the most recent types, it's just
type Store = any
and thenstore?: Store
, so no way to override.To Reproduce Steps to reproduce the behavior:
I have this helper function for rendering components for tests:
And without patch, it throws error:
Expected behavior
I expect to be able to specify Store type, which is possible with this patch:
Related information:
@testing-library/vue
version: 5.6.2Vue
version: 2.6.14node
version: 16.13.0npm
(oryarn
) version: 8.1.0Relevant code or config (if any)
I also have this patch for vuex to use our store object type:
both patches are applied using
patch-package
npm package inpostinstall
script.