microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/fix-8410

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

packages/html-program-viewer/test/emitter.test.ts

15lines · modecode

1import type { BasicTestRunner } from "@typespec/compiler/testing";
2import { beforeEach, it } from "vitest";
3import { createViewerTestRunner } from "./test-host.js";
4
5let runner: BasicTestRunner;
6
7beforeEach(async () => {
8 runner = await createViewerTestRunner();
9});
10
11it("runs emitter", async () => {
12 await runner.compile(`op foo(): string;`, {
13 emit: ["@typespec/html-program-viewer"],
14 });
15});
16