(config: IntegrationConfig)
| 143 | }; |
| 144 | |
| 145 | const resolve = (config: IntegrationConfig) => |
| 146 | plugin.resolveTools!({ |
| 147 | integration: { |
| 148 | slug: IntegrationSlug.make("pointer_api"), |
| 149 | name: "pointer", |
| 150 | description: "pointer", |
| 151 | kind: "openapi", |
| 152 | canRemove: true, |
| 153 | canRefresh: false, |
| 154 | authMethods: [], |
| 155 | }, |
| 156 | config, |
| 157 | connection: { |
| 158 | owner: "org", |
| 159 | integration: IntegrationSlug.make("pointer_api"), |
| 160 | name: ConnectionName.make("main"), |
| 161 | }, |
| 162 | template: null, |
| 163 | storage, |
| 164 | httpClientLayer: FetchHttpClient.layer, |
| 165 | getValue: () => Effect.succeed(null), |
| 166 | getValues: () => Effect.succeed({}), |
| 167 | }); |
| 168 | |
| 169 | const fromPointer = yield* resolve({ specHash: hash } as IntegrationConfig); |
| 170 | expect(fromPointer.tools.map((tool) => String(tool.name))).toContain("items.echoHeaders"); |
no outgoing calls
no test coverage detected