fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

dev: add test

+40
+40
packages/openapi-ts/src/__tests__/index.test.ts
··· 285 285 const results = await createClient(config); 286 286 expect(results).toHaveLength(4); 287 287 }); 288 + 289 + it('executes @angular/common HttpRequest builder path', async () => { 290 + const results = await createClient({ 291 + dryRun: true, 292 + input: { 293 + info: { title: 'angular-common-test', version: '1.0.0' }, 294 + openapi: '3.1.0', 295 + paths: { 296 + '/pets': { 297 + get: { 298 + operationId: 'listPets', 299 + responses: { 300 + 200: { 301 + content: { 302 + 'application/json': { 303 + schema: { 304 + items: { type: 'string' }, 305 + type: 'array', 306 + }, 307 + }, 308 + }, 309 + description: 'ok', 310 + }, 311 + }, 312 + }, 313 + }, 314 + }, 315 + }, 316 + logs: { level: 'silent' }, 317 + output: 'out', 318 + plugins: [ 319 + '@hey-api/typescript', 320 + '@hey-api/sdk', 321 + '@angular/common', 322 + '@hey-api/client-angular', 323 + ], 324 + }); 325 + 326 + expect(results.length).toBeGreaterThanOrEqual(1); 327 + }); 288 328 });