import { baseParse as parse, NodeTypes, ElementNode, TextNode, ErrorCodes, ElementTypes, InterpolationNode, AttributeNode, ConstantTypes } from '@vue/compiler-core' import { parserOptions, DOMNamespaces } from '../src/parserOptions' describe('DOM parser', () => { describe('Text', () => { test('textarea handles comments/elements as just text', () => { const ast = parse( '', parserOptions ) const element = ast.children[0] as ElementNode const text = element.children[0] as TextNode expect(text).toStrictEqual({ type: NodeTypes.TEXT, content: 'some