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
feat: use 0 timeout in test environment during save
thecodrra54dcc563225
diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsxindex 890f88466..d4aa62547 100644--- a/apps/web/src/components/editor/tiptap.tsx+++ b/apps/web/src/components/editor/tiptap.tsx@@ -25,6 +25,7 @@ import { useIsUserPremium } from "../../hooks/use-is-user-premium";import { showBuyDialog } from "../../common/dialog-controller";import { useStore as useSettingsStore } from "../../stores/setting-store";+const SAVE_INTERVAL = process.env.REACT_APP_TEST ? 0 : 300;var saveTimeout = 0;type TipTapProps = {editorContainer: HTMLElement;@@ -112,7 +113,7 @@ function TipTap(props: TipTapProps) {},},});- }, 500) as unknown as number;+ }, SAVE_INTERVAL) as unknown as number;},onDestroy: () => {configure({