From 4b97f76682706587ec052cafae66d4f15b31b071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rge=20N=C3=A6ss?= Date: Sat, 20 Jan 2024 10:34:50 +0100 Subject: [PATCH] fix(structure): add workaround for circular import issue causing resolveIntent tests to fail --- .../structureResolvers/__tests__/resolveIntent.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/sanity/src/structure/structureResolvers/__tests__/resolveIntent.test.ts b/packages/sanity/src/structure/structureResolvers/__tests__/resolveIntent.test.ts index a92acb6e4dd..7dda8fed27d 100644 --- a/packages/sanity/src/structure/structureResolvers/__tests__/resolveIntent.test.ts +++ b/packages/sanity/src/structure/structureResolvers/__tests__/resolveIntent.test.ts @@ -1,5 +1,8 @@ -import {getMockSource} from '../../../../test/testUtils/getMockWorkspaceFromConfig' import {createStructureBuilder, SerializeError} from '../../structureBuilder' +/* eslint-disable import/order */ +/* this has to be imported after createStructureBuilder due to what looks like a circular import issue */ +import {getMockSource} from '../../../../test/testUtils/getMockWorkspaceFromConfig' +/* eslint-enable import/order */ import {PaneNode, UnresolvedPaneNode} from '../../types' import {PaneResolutionError} from '../PaneResolutionError' import {resolveIntent} from '../resolveIntent'