(slug: string)
| 74 | }); |
| 75 | |
| 76 | const addSpecCode = (slug: string) => ` |
| 77 | const added = await tools.executor.openapi.addSpec({ |
| 78 | spec: { kind: "blob", value: ${JSON.stringify(NPM_DOWNLOADS_SPEC)} }, |
| 79 | slug: ${JSON.stringify(slug)}, |
| 80 | baseUrl: "https://api.npmjs.org", |
| 81 | }); |
| 82 | return added.ok ? { ok: true, slug: added.data.slug, toolCount: added.data.toolCount } : { ok: false, error: added.error }; |
| 83 | `; |
| 84 | |
| 85 | // THE call under test: a no-auth connection with no credential origin at all. |
| 86 | const createNoAuthConnectionCode = (slug: string) => ` |
no outgoing calls
no test coverage detected