MCPcopy Create free account
hub / github.com/vuejs/test-utils / MyComp

Class MyComp

tests/features/classComponent.spec.ts:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19 it('data: $props should be available', () => {
20 @Options({
21 props: ['foo']
22 })
23 class MyComp extends Vue {
24 message = 'answer is ' + (this.$props as any).foo
25 render() {
26 return h('div', this.message)
27 }
28 }
29
30 const wrapper = mount(MyComp, {
31 props: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…