diff --git a/packages/gcp-ai/test/plugin.test.mjs b/packages/gcp-ai/test/plugin.test.mjs index 67f6ee2..79ca411 100644 --- a/packages/gcp-ai/test/plugin.test.mjs +++ b/packages/gcp-ai/test/plugin.test.mjs @@ -1153,7 +1153,8 @@ test("account settings beat the row, and row settings beat environment defaults" }) test("the usage hook takes the billing, currency and profile maps from the provider's or the plugin's options", async () => { - const auth = { accountId: "reader@example.com" } + // No account: nothing asks gcloud for a token before the options are read. + const auth = { type: "success" } for (const [name, bad, wanted] of [ ["billingAccounts", { "example-project": "nope" }, /billingAccounts: /], ["billingCurrencies", { "AAAAAA-BBBBBB-CCCCCC": "EUR" }, /billingCurrencies: "EUR" is not a currency/],