diff --git a/packages/sample/src/cli.test.ts b/packages/sample/src/cli.test.ts index 33486277da..50d30118d4 100644 --- a/packages/sample/src/cli.test.ts +++ b/packages/sample/src/cli.test.ts @@ -62,11 +62,16 @@ describe("parse", () => { }) describe("code", () => { const action = "code" - test("greeter.ts", async () => { + test("greeter.ts query", async () => { const res = await $`node ${cli} ${cmd} ${action} src/greeter.ts "(interface_declaration) @i"` assert(res.stdout.includes("interface_declaration")) }) + test("greeter.ts tree", async () => { + const res = + await $`node ${cli} ${cmd} ${action} src/greeter.ts` + assert(res.stdout.includes("interface_declaration")) + }) test("counting.py", async () => { const res = await $`node ${cli} ${cmd} ${action} src/counting.py "(class_definition) @i"`