A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
desktop: patch better-sqlite3-multiple-ciphers on each test build
Abdullah Atta21978c4c1d80
diff --git a/apps/desktop/__tests__/utils.ts b/apps/desktop/__tests__/utils.tsindex c4d31f0a2..aaaa9dc2f 100644--- a/apps/desktop/__tests__/utils.ts+++ b/apps/desktop/__tests__/utils.ts@@ -18,12 +18,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/import { execSync } from "child_process";-import { mkdir, rm } from "fs/promises";+import { mkdir, rm, rmdir } from "fs/promises";import { fileURLToPath } from "node:url";import path from "path";import { _electron as electron } from "playwright";import slugify from "slugify";import { test as vitestTest, TestContext } from "vitest";+import { patchBetterSQLite3 } from "../scripts/patch-better-sqlite3.mjs";const __filename = fileURLToPath(import.meta.url);const __dirname = path.dirname(__filename);@@ -53,8 +54,8 @@ export const test = vitestTest.extend<Fixtures>({const ctx = await buildAndLaunchApp(options);await use(ctx);await ctx.app.close();- await rm(ctx.userDataDir, { recursive: true, force: true });- await rm(ctx.outputDir, { recursive: true, force: true });+ await rmdir(ctx.userDataDir, { recursive: true });+ await rmdir(ctx.outputDir, { recursive: true });}});@@ -160,6 +161,8 @@ async function buildApp({}});+ await patchBetterSQLite3();+return path.join(__dirname,"..",