fix(FN-952): activate projects after CLI registration
- Set project status to 'active' after registration in runInit (kb init) - Set project status to 'active' after registration in runProjectAdd (kb project add) - Set project status to 'active' after interactive registration in resolveProjectDirectory - Add updateProject mock to init.test.ts, project.test.ts, and project-resolver.test.ts
This commit is contained in:
@@ -18,6 +18,7 @@ vi.mock("@fusion/core", async () => {
|
||||
getProject = vi.fn().mockResolvedValue(undefined);
|
||||
getProjectByPath = vi.fn().mockResolvedValue(undefined);
|
||||
registerProject = vi.fn();
|
||||
updateProject = vi.fn().mockResolvedValue({});
|
||||
unregisterProject = vi.fn().mockResolvedValue(undefined);
|
||||
getProjectHealth = vi.fn().mockResolvedValue(undefined);
|
||||
isInitialized = vi.fn().mockReturnValue(true);
|
||||
|
||||
Reference in New Issue
Block a user