microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
packages/json-schema/test/interfaces.test.ts
13lines · modecode
| 1 | import { deepStrictEqual } from "assert"; |
| 2 | import { describe, it } from "vitest"; |
| 3 | import { emitSchema } from "./utils.js"; |
| 4 | |
| 5 | describe("jsonschema: interfaces", () => { |
| 6 | it("emit nothing", async () => { |
| 7 | const schemas = await emitSchema(` |
| 8 | interface Foo {} |
| 9 | `); |
| 10 | |
| 11 | deepStrictEqual(schemas, {}); |
| 12 | }); |
| 13 | }); |
| 14 | |