store.$patch reactivity not working when use jest.resetModules() #2368
Replies: 1 comment
-
it is duplicated. original issue here: #2371 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue:
Unable to get the latest value of the state in the component, when setting the value using the store.$patch({language: 'Javascript'}) in testing with jest
Observation:
store state reactivity is not working when using the
jest.resetModules()
Example code:
Language.vue
language.spec.ts
Actual behavior:
The component variable not updating with the latest value
Expecting behavior:
The component should get the latest value of the language
Additional information:
Jest Version: 29.5.0
Node: 16.20.1
Thanks in Advance
Beta Was this translation helpful? Give feedback.
All reactions