Replies: 2 comments
-
setup(props) { |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @916871270 It's hard to help you without more context, but you can probably write something like this: const wrapper = mount(MyComponent);
expect(wrapper.vm.isShow).toBe(false);
await wrapper.setProps({ show: true });
expect(wrapper.vm.isShow).toBe(true); A better test would be to test what really changes in the template when |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
Beta Was this translation helpful? Give feedback.
All reactions