Skip to content

Commit 93db4cf

Browse files
committed
fix
1 parent e4d3f9d commit 93db4cf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/spark/test/clack-wizard.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ const BRAINTRUST_JSON_FILE_CONTENT = `${JSON.stringify(
5454
null,
5555
2,
5656
)}\n`;
57+
const LOCAL_TOKEN_GITIGNORE_CONTENT =
58+
"# Added by Braintrust Wizard\n.env.braintrust\n.braintrust.json\n";
5759

5860
const CANCEL = Symbol("cancel");
5961

@@ -487,7 +489,7 @@ describe("runClackWizard", () => {
487489
BRAINTRUST_JSON_FILE_CONTENT,
488490
);
489491
expect(readFileSync(join(cwd, ".gitignore"), "utf8")).toBe(
490-
".env.braintrust\n.braintrust.json\n",
492+
LOCAL_TOKEN_GITIGNORE_CONTENT,
491493
);
492494
expect(existsSync(join(root, ".env.braintrust"))).toBe(false);
493495
expect(existsSync(join(root, ".braintrust.json"))).toBe(false);
@@ -515,7 +517,7 @@ describe("runClackWizard", () => {
515517
expect(readFileSync(envFilePath, "utf8")).toBe("BRAINTRUST_API_KEY=old\n");
516518
expect(existsSync(join(cwd, ".braintrust.json"))).toBe(false);
517519
expect(readFileSync(join(cwd, ".gitignore"), "utf8")).toBe(
518-
".env.braintrust\n.braintrust.json\n",
520+
LOCAL_TOKEN_GITIGNORE_CONTENT,
519521
);
520522
});
521523

0 commit comments

Comments
 (0)