(template: string, options: CompilerOptions = {})
| 9 | import { RENDER_SLOT, SET_BLOCK_TRACKING } from '../../src/runtimeHelpers' |
| 10 | |
| 11 | function transformWithOnce(template: string, options: CompilerOptions = {}) { |
| 12 | const ast = parse(template) |
| 13 | const [nodeTransforms, directiveTransforms] = getBaseTransformPreset() |
| 14 | transform(ast, { |
| 15 | nodeTransforms, |
| 16 | directiveTransforms, |
| 17 | ...options, |
| 18 | }) |
| 19 | return ast |
| 20 | } |
| 21 | |
| 22 | describe('compiler: v-once transform', () => { |
| 23 | test('as root node', () => { |
no test coverage detected