From c8080aae332c79a0fad8bc03eda1bdae2cc9efb9 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 cbe511f1d07..55cdf7d6305 100644 --- a/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap +++ b/packages/compiler-sfc/__tests__/__snapshots__/compileScript.spec.ts.snap @@ -1261,6 +1261,21 @@ return () => {} }" `; +exports[`SFC compile + `) + expect(content).toMatch(`return { a, b, c }`) + assertCode(content) + }) + test('should expose top level declarations', () => { const { content, bindings } = compile(`