(metadata: Record<string, string> | undefined, effect: Effect.Effect<A, E, R>)
| 27 | ) |
| 28 | |
| 29 | const withAuth = <A, E, R>(metadata: Record<string, string> | undefined, effect: Effect.Effect<A, E, R>) => |
| 30 | withEnv( |
| 31 | { |
| 32 | OPENCODE_AUTH_CONTENT: JSON.stringify({ |
| 33 | digitalocean: { |
| 34 | type: "api", |
| 35 | key: "sk_do_test", |
| 36 | ...(metadata ? { metadata } : {}), |
| 37 | }, |
| 38 | }), |
| 39 | }, |
| 40 | effect, |
| 41 | ) |
| 42 | |
| 43 | it.instance( |
| 44 | "digitalocean provider autoloads from DIGITALOCEAN_ACCESS_TOKEN", |
no test coverage detected