From ebf2a1990020ff765061a99fa18c4306140266e8 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Thu, 7 Jul 2022 19:29:09 +0200 Subject: [PATCH] Initialize the studio only once in tests --- theatre/shared/src/testUtils.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/theatre/shared/src/testUtils.ts b/theatre/shared/src/testUtils.ts index cbf01c1..2845002 100644 --- a/theatre/shared/src/testUtils.ts +++ b/theatre/shared/src/testUtils.ts @@ -26,10 +26,11 @@ const defaultProps = { } let lastProjectN = 0 -export async function setupTestSheet(sheetState: SheetState_Historic) { - const studio = getStudio()! - studio.initialize({usePersistentStorage: false}) +const studio = getStudio()! +studio.initialize({usePersistentStorage: false}) + +export async function setupTestSheet(sheetState: SheetState_Historic) { const projectState: ProjectState_Historic = { definitionVersion: globals.currentProjectStateDefinitionVersion, sheetsById: {