Initialize the studio only once in tests

This commit is contained in:
Aria Minaei 2022-07-07 19:29:09 +02:00 committed by Aria
parent 13d612f4b7
commit ebf2a19900

View file

@ -26,10 +26,11 @@ const defaultProps = {
}
let lastProjectN = 0
export async function setupTestSheet(sheetState: SheetState_Historic) {
const studio = getStudio()!
studio.initialize({usePersistentStorage: false})
export async function setupTestSheet(sheetState: SheetState_Historic) {
const projectState: ProjectState_Historic = {
definitionVersion: globals.currentProjectStateDefinitionVersion,
sheetsById: {