test: add coverage for editorStore methods and file system operations

This commit is contained in:
2026-03-03 17:17:21 -08:00
committed by Naomi Carrigan
parent 16f92e22b9
commit f30ff60ea9
2 changed files with 366 additions and 1 deletions
+4 -1
View File
@@ -17,7 +17,10 @@ vi.mock("@tauri-apps/api/core", () => ({
if (command in mockInvokeResults) {
const result = mockInvokeResults[command];
if (result instanceof Error) {
return Promise.reject(result);
const err = result;
return Promise.resolve().then(() => {
throw err;
});
}
return Promise.resolve(result);
}