Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/config/src/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe("loadConfig", () => {

const config = await loadConfig();

expect(readUser).toHaveBeenCalledWith({ name: ".backlogrc" });
expect(config.defaultSpace).toBe("example.backlog.com");
expect(config.spaces).toHaveLength(1);
expect(config.spaces[0]?.host).toBe("example.backlog.com");
Expand Down Expand Up @@ -70,6 +71,6 @@ describe("writeConfig", () => {

await writeConfig(config);

expect(writeUser).toHaveBeenCalledWith(config, { name: "backlog" });
expect(writeUser).toHaveBeenCalledWith(config, { name: ".backlogrc" });
});
});
2 changes: 1 addition & 1 deletion packages/config/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { type } from "arktype";
import consola from "consola";
import { readUser, writeUser } from "rc9";

const APP_NAME = "backlog";
const APP_NAME = ".backlogrc";

/**
* Loads and validates the user configuration from the rc file.
Expand Down
Loading