Summary
No test exists that combines multiple SFC compiler features in a realistic scenario. Individual features (v-if, v-for, v-model, v-show, reactive bindings) are tested in isolation, but their interactions are not validated.
Example test case from audit:
``vue
<script setup>
import { ref, computed } from '@vue/reactivity'
const count = ref(0)
const double = computed(() => count.value * 2)
</script>
``
This should verify that the generated code:
- Correctly imports and uses ref/computed
- Wraps reactive identifiers with unref()
- Handles v-if and v-for in the same template
- Produces a valid widget tree
Reference
Identified in compiler test audit (docs/compiler-test-audit.md section 3.5).
概要
缺少多特性组合的真实场景编译测试。各特性(v-if、v-for、v-model、v-show、响应式绑定)均单独测试,但交互行为未验证。
测试应验证生成代码能正确导入和使用 ref/computed,用 unref() 包裹响应式标识符,处理同一模板中的 v-if 和 v-for,并生成有效的 widget 树。
Summary
No test exists that combines multiple SFC compiler features in a realistic scenario. Individual features (v-if, v-for, v-model, v-show, reactive bindings) are tested in isolation, but their interactions are not validated.
Example test case from audit:
``vue
<script setup> import { ref, computed } from '@vue/reactivity' const count = ref(0) const double = computed(() => count.value * 2) </script> ``This should verify that the generated code:
Reference
Identified in compiler test audit (docs/compiler-test-audit.md section 3.5).
概要
缺少多特性组合的真实场景编译测试。各特性(v-if、v-for、v-model、v-show、响应式绑定)均单独测试,但交互行为未验证。
测试应验证生成代码能正确导入和使用 ref/computed,用 unref() 包裹响应式标识符,处理同一模板中的 v-if 和 v-for,并生成有效的 widget 树。