import { expect, it } from "vitest"; import { ElseClause, ElseIfClause, IfStatement, } from "../src/components/IfStatement.jsx"; import { TestFile } from "./utils.js"; it("works with blocks", () => { expect( // do thing // do another thing // do default thing , ).toRenderTo(` if (x === 1) { // do thing } else if (x === 2) { // do another thing } else { // do default thing } `); });