Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

test: do not show signup screen when testing

thecodrr660aaf1994a0
diff --git a/apps/web/src/index.js b/apps/web/src/index.js
index 6215ea0e1..3598f3438 100644
--- a/apps/web/src/index.js
+++ b/apps/web/src/index.js
@@ -1,6 +1,7 @@
import { render } from "react-dom";
import { getCurrentPath } from "./navigation";
import * as serviceWorker from "./serviceWorkerRegistration";
+import { isTesting } from "./utils/platform";
if (process.env.REACT_APP_PLATFORM === "desktop") require("./commands");
const ROUTES = {
@@ -29,7 +30,7 @@ const ROUTES = {
function getRoute() {
const path = getCurrentPath();
- if (!shouldSkipInitiation() && !ROUTES[path]) {
+ if (!isTesting() && !shouldSkipInitiation() && !ROUTES[path]) {
window.history.replaceState({}, null, "/signup");
return ROUTES["/signup"];
}