From fa37ca94fdf3919aeeef8d3f952cbabe3fdd01e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Thu, 22 Dec 2022 22:52:58 +0800 Subject: [PATCH] test: add --- .../__snapshots__/compileScript.spec.ts.snap | 15 +++++++++++++++ .../compiler-sfc/__tests__/compileScript.spec.ts | 12 ++++++++++++ 2 files changed, 27 insertions(+) diff --git a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap index 473ebd4e0b9..93484822ea9 100644 --- a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap +++ b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap @@ -1277,6 +1277,21 @@ return () => {} }" `; +exports[`SFC compile + `) + expect(content).toMatch(`return { a, b, c }`) + assertCode(content) + }) + test('should expose top level declarations', () => { const { content, bindings } = compile(`