Mocking this.$parent.$options.name for unit test #2536
Unanswered
steven-twerdochlib
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to test my mounted() function but don't know how to set this.$parent.$options.name to the value I want.
This is my mounted() function for reference:
I've tried a few things but often get the error:
TypeError: 'set' on proxy: trap returned falsish for property '$parent'
Does anyone have an idea how to make a unit test for this in Vue 3, ideally using shallowMount?
Beta Was this translation helpful? Give feedback.
All reactions