feat: add vitest, vite, move to tdd

This commit is contained in:
2026-07-13 07:07:44 +05:00
parent 4704a1d5a0
commit 62862beb06
18 changed files with 2043 additions and 346 deletions
+26
View File
@@ -0,0 +1,26 @@
import { Task } from "@/model/task";
export interface IFileSystem {
readFile(path: string): Promise<string>;
writeFile(path: string, content: string): Promise<void>;
deleteFile(path: string): Promise<void>;
readdir(path: string): Promise<string[]>;
mkdir(path: string): Promise<void>;
}
export interface ITaskRepository {
list(folderPath: string): Promise<Task[]>;
getById(folderPath: string, id: string): Promise<Task | undefined>;
create(
folderPath: string,
task: Omit<Task, "id" | "created" | "updated">,
): Promise<Task>;
update(folderPath: string, task: Task): Promise<void>;
delete(folderPath: string, id: string): Promise<void>;
}
export interface IConfigProvider {
getProjectTaskPath(): string | undefined;
getGlobalTaskPath(): string | undefined;
getFileExtension(): string;
}