microsoft/typespec

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/fix-7547

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

15lines · modecode

1import { createTestHost, createTestWrapper } from "@typespec/compiler/testing";
2import { ProgramViewerTestLibrary } from "../src/testing/index.js";
3
4export async function createViewerTestHost() {
5 return createTestHost({
6 libraries: [ProgramViewerTestLibrary],
7 });
8}
9
10export async function createViewerTestRunner() {
11 const host = await createViewerTestHost();
12 return createTestWrapper(host, {
13 autoImports: [],
14 });
15}