Initialize the studio only once in tests
This commit is contained in:
parent
13d612f4b7
commit
ebf2a19900
1 changed files with 4 additions and 3 deletions
|
@ -26,10 +26,11 @@ const defaultProps = {
|
||||||
}
|
}
|
||||||
|
|
||||||
let lastProjectN = 0
|
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 = {
|
const projectState: ProjectState_Historic = {
|
||||||
definitionVersion: globals.currentProjectStateDefinitionVersion,
|
definitionVersion: globals.currentProjectStateDefinitionVersion,
|
||||||
sheetsById: {
|
sheetsById: {
|
||||||
|
|
Loading…
Reference in a new issue