From 3f6510045c6a4aa23870eae10c1d8a75e787bfb1 Mon Sep 17 00:00:00 2001 From: Kevin Deng Date: Mon, 22 Dec 2025 20:50:50 +0800 Subject: [PATCH] test: VariableDeclaration --- tests/index.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/index.test.ts b/tests/index.test.ts index b749462..a9079db 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -13,6 +13,8 @@ test('basic', () => { export function format( filePath: string, code: string, options?: Options): string; + const foo = 42; + const bar: typeof foo export { format as "module.exports" }`, ), ).toMatchInlineSnapshot(` @@ -21,6 +23,8 @@ test('basic', () => { include?: any str: 'hello' }", + "bar": "typeof foo", + "foo": "42", "format": "function format(_: string, _: string, _: Options): string", "module.exports": "function format(_: string, _: string, _: Options): string", } -- 2.51.2