| 274 | } |
| 275 | |
| 276 | class WithPropCustomClassComponent extends CustomClassComponent<CustomClassComponentProps> { |
| 277 | static defaultProps: (keyof CustomClassComponentProps)[] = ['size', 'age'] |
| 278 | count = ref(0) |
| 279 | changeCount(count: number) { |
| 280 | this.count.value = count |
| 281 | } |
| 282 | render() { |
| 283 | return h('div', `hello world ${this.count.value}${this.props.size}`) |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | expectError( |
| 288 | mount( |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…