mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Fix flaky jest tests (#29927)
* Debug flaky jest test Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Discard changes to jest.config.ts --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
10757b4357
commit
e235100dd0
+3
-1
@@ -1115,7 +1115,9 @@ export async function onLoggedOut(): Promise<void> {
|
||||
* @param {object} opts Options for how to clear storage.
|
||||
* @returns {Promise} promise which resolves once the stores have been cleared
|
||||
*/
|
||||
async function clearStorage(opts?: { deleteEverything?: boolean }): Promise<void> {
|
||||
export async function clearStorage(opts?: { deleteEverything?: boolean }): Promise<void> {
|
||||
logger.info(`Clearing storage, deleteEverything=${opts?.deleteEverything}`);
|
||||
|
||||
if (window.localStorage) {
|
||||
// get the currently defined device language, if set, so we can restore it later
|
||||
const language = SettingsStore.getValueAt(SettingLevel.DEVICE, "language", null, true, true);
|
||||
|
||||
Reference in New Issue
Block a user