microsoft/typespec

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
ce9c567e5bfb441bb6415699a6b6fa797bc08f2e

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

19lines · modecode

1import { BasicTestRunner } from "@typespec/compiler/testing";
2import { beforeEach, describe, it } from "vitest";
3import { createViewerTestRunner } from "./test-host.js";
4
5describe("html-program-viewer: smoke tests", () => {
6 let runner: BasicTestRunner;
7
8 beforeEach(async () => {
9 runner = await createViewerTestRunner();
10 });
11
12 it("create html view", async () => {
13 await runner.compile(`op foo(): string;`);
14 });
15
16 it("compile unnamed union variant without error", async () => {
17 await runner.compile(`union Foo { "a", "b" }`);
18 });
19});
20