@typespec/compiler
Version:
TypeSpec Compiler Preview
11 lines (9 loc) • 333 B
text/typescript
import { strictEqual } from "node:assert";
import { describe, it } from "node:test";
import { emit } from "./test-host.js";
describe("hello", () => {
it("emit output.txt with content hello world", async () => {
const results = await emit(`op test(): void;`);
strictEqual(results["output.txt"], "Hello world\n");
});
});