()
| 16 | it('should expose return values to template render context', () => { |
| 17 | const Comp = defineComponent({ |
| 18 | setup() { |
| 19 | return { |
| 20 | // ref should auto-unwrap |
| 21 | ref: ref('foo'), |
| 22 | // object exposed as-is |
| 23 | object: reactive({ msg: 'bar' }), |
| 24 | // primitive value exposed as-is |
| 25 | value: 'baz', |
| 26 | } |
| 27 | }, |
| 28 | render() { |
| 29 | return `${this.ref} ${this.object.msg} ${this.value}` |
| 30 | }, |
nothing calls this directly
no test coverage detected