test(FN-4715): complete Step 2 — add default invariant regressions
Fusion-Task-Id: FN-4715 Fusion-Task-Lineage: b1c3393f-2596-4b3f-a8fb-c9838bf6c985
This commit is contained in:
committed by
gsxdsm
parent
b3fce6dda8
commit
4e4fad5c88
@@ -15,6 +15,10 @@ describe("worktree-paths", () => {
|
||||
expect(resolveWorktreesDir(rootDir, undefined)).toBe(join(rootDir, ".worktrees"));
|
||||
});
|
||||
|
||||
it("defaults to <rootDir>/.worktrees when settings object is present but worktreesDir is unset", () => {
|
||||
expect(resolveWorktreesDir(rootDir, {} as any)).toBe(join(rootDir, ".worktrees"));
|
||||
});
|
||||
|
||||
it("supports absolute path", () => {
|
||||
expect(resolveWorktreesDir(rootDir, { worktreesDir: "/var/tmp/fn-worktrees" } as any)).toBe("/var/tmp/fn-worktrees");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user