From 372cfd14facde169e687ebbb4e63d9de7b7e446a Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Wed, 22 Feb 2023 21:33:04 +0530 Subject: [PATCH] fixes tests --- lib/build/supertokens.js | 1 + lib/ts/supertokens.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/build/supertokens.js b/lib/build/supertokens.js index 17e4b89dd..5e909deac 100644 --- a/lib/build/supertokens.js +++ b/lib/build/supertokens.js @@ -401,6 +401,7 @@ class SuperTokens { throw new Error("calling testing function in non testing env"); } querier_1.Querier.reset(); + recipe_1.default.reset(); SuperTokens.instance = undefined; } static getInstanceOrThrowError() { diff --git a/lib/ts/supertokens.ts b/lib/ts/supertokens.ts index 201508ca8..86f014c52 100644 --- a/lib/ts/supertokens.ts +++ b/lib/ts/supertokens.ts @@ -140,6 +140,7 @@ export default class SuperTokens { throw new Error("calling testing function in non testing env"); } Querier.reset(); + DashboardRecipe.reset(); SuperTokens.instance = undefined; }