MCPcopy Create free account
hub / github.com/Effect-TS/effect / expectSpecPaths

Function expectSpecPaths

packages/platform/test/OpenApi.test.ts:140–146  ·  view source on GitHub ↗
(
  api: HttpApi.HttpApi<Id, Groups, E, R>,
  paths: OpenApi.OpenAPISpec["paths"],
  options?: Options
)

Source from the content-addressed store, hash-verified

138}
139
140const expectSpecPaths = <Id extends string, Groups extends HttpApiGroup.HttpApiGroup.Any, E, R>(
141 api: HttpApi.HttpApi<Id, Groups, E, R>,
142 paths: OpenApi.OpenAPISpec["paths"],
143 options?: Options
144) => {
145 expectSpec(api, getSpec({ paths }, options), options)
146}
147
148const expectSpec = <Id extends string, Groups extends HttpApiGroup.HttpApiGroup.Any, E, R>(
149 api: HttpApi.HttpApi<Id, Groups, E, R>,

Callers 1

OpenApi.test.tsFile · 0.85

Calls 2

expectSpecFunction · 0.85
getSpecFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…