Files
test-repo/tests/integration/__tests__/debug-print-ast.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
383 B
JavaScript
Raw Normal View History

2024-07-27 04:05:58 +08:00
test("prints information for debugging AST --debug-print-ast", async () => {
const { stdout } = await runCli(
"cli/with-shebang",
["--debug-print-ast", "--parser", "babel"],
{
input: "const foo = 'foo';",
},
);
const data = JSON.parse(stdout);
expect(data).toHaveProperty("type", "File");
expect(data).toHaveProperty("program.type", "Program");
2021-09-15 21:03:04 +09:00
});