import { expect, it } from "vitest";
import { BlockScope } from "../src/components/BlockScope.jsx";
import { VarDeclaration } from "../src/index.js";
import { TestFile } from "./utils.js";
it("creates a scope", () => {
const text = (
;
;
);
expect(text).toRenderTo(`
const x = hi;
{
const x = hello;
}
`);
});
it("renders an empty block properly", () => {
const text = (
);
expect(text).toRenderTo("{}");
});