import { assertCode, compileSFCScript as compile } from '../utils' test('defineExpose()', () => { const { content } = compile(` `) assertCode(content) // should remove defineOptions import and call expect(content).not.toMatch('defineExpose') // should generate correct setup signature expect(content).toMatch(`setup(__props, { expose: __expose }) {`) // should replace callee expect(content).toMatch(/\b__expose\(\{ foo: 123 \}\)/) }) test(' `) assertCode(content) })