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

Class ClassComponent

test-dts/renderToString.d-test.ts:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91// class component
92@Options({
93 props: {
94 msg: String
95 }
96})
97class ClassComponent extends Vue {
98 dataText = ''
99 get computedMsg(): string {
100 return `Message: ${(this.$props as any).msg}`
101 }
102
103 changeMessage(text: string): void {
104 this.dataText = 'Updated'
105 }
106}
107expectType<Promise<string>>(renderToString(ClassComponent))
108
109// No `attachTo` mounting option

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…