-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathfirebase-init.spec.ts
More file actions
31 lines (26 loc) · 1013 Bytes
/
firebase-init.spec.ts
File metadata and controls
31 lines (26 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { startAgentTest } from "../runner/index.js";
import { AgentTestRunner } from "../runner/index.js";
import "../helpers/hooks.js";
describe("/firebase:init", function (this: Mocha.Suite) {
this.retries(2);
it("backend app", async function (this: Mocha.Context) {
const run: AgentTestRunner = await startAgentTest(this, {
templateName: "next-app-hello-world",
});
await run.type("/firebase:init");
await run.expectText("Backend Services");
await run.expectText("AI Logic");
await run.type(
"Build a single page backend app with html and pure javascript. It should say Hello World, but let you login and edit the hello world text for your user",
);
await run.type("Yes that looks good. Use Firebase Project gcli-ext-sam-01");
await run.expectToolCalls([
"firebase_update_environment",
{
name: "firebase_read_resources",
argumentContains: "firebase://guides/init/backend",
successIs: true,
},
]);
});
});