diff --git a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap index 59ef9b1b7ee..c27f0aeabe2 100644 --- a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap +++ b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap @@ -626,6 +626,35 @@ return { } }" `; +exports[`SFC compile `) + expect(content).toMatch('console.log(a)') + expect(content).toMatch('console.log(b.value)') + expect(content).toMatch('console.log(c)') + expect(content).toMatch('console.log($d)') + expect(content).toMatch('console.log(d.value)') + expect(content).toMatch('console.log(e)') + assertCode(content) + }) + test('object destructure', () => { const { content, bindings } = compile(`