import { ElementNode } from '@vue/compiler-core'
import { compile } from '../src'
import { MPErrorCodes } from '../src/errors'
import { CompilerOptions } from '../src/options'
import { assert } from './testUtils'
function parseWithVOn(template: string, options: CompilerOptions = {}) {
const { ast } = compile(template, options)
return {
root: ast,
node: ast.children[0] as ElementNode,
}
}
describe('compiler(mp): transform v-on', () => {
test('lazy element', () => {
assert(
`