diff --git a/packages/sanity/src/core/bundles/components/dialog/__tests__/BundleForm.test.tsx b/packages/sanity/src/core/bundles/components/dialog/__tests__/BundleForm.test.tsx index 721cecca21a7..f347a26da683 100644 --- a/packages/sanity/src/core/bundles/components/dialog/__tests__/BundleForm.test.tsx +++ b/packages/sanity/src/core/bundles/components/dialog/__tests__/BundleForm.test.tsx @@ -2,7 +2,7 @@ import {beforeEach, describe, expect, it, jest} from '@jest/globals' import {fireEvent, render, screen} from '@testing-library/react' import {type BundleDocument} from 'sanity' -import {createWrapper} from '../../../util/__tests__/createWrapper' +import {createWrapper} from '../../../util/tests/createWrapper' import {BundleForm} from '../BundleForm' jest.mock('sanity', () => ({ diff --git a/packages/sanity/src/core/bundles/components/dialog/__tests__/BundleIconEditorPicker.test.tsx b/packages/sanity/src/core/bundles/components/dialog/__tests__/BundleIconEditorPicker.test.tsx index 91f4ca732fed..899714372642 100644 --- a/packages/sanity/src/core/bundles/components/dialog/__tests__/BundleIconEditorPicker.test.tsx +++ b/packages/sanity/src/core/bundles/components/dialog/__tests__/BundleIconEditorPicker.test.tsx @@ -2,7 +2,7 @@ import {beforeEach, describe, expect, it, jest} from '@jest/globals' import {fireEvent, render, screen} from '@testing-library/react' import {type BundleDocument} from 'sanity' -import {createWrapper} from '../../../util/__tests__/createWrapper' +import {createWrapper} from '../../../util/tests/createWrapper' import {BundleIconEditorPicker} from '../BundleIconEditorPicker' describe('BundleIconEditorPicker', () => { diff --git a/packages/sanity/src/core/bundles/index.ts b/packages/sanity/src/core/bundles/index.ts index 697f9653e02c..0a7341092e7c 100644 --- a/packages/sanity/src/core/bundles/index.ts +++ b/packages/sanity/src/core/bundles/index.ts @@ -1,5 +1,5 @@ export * from './components' export * from './hooks' -export * from './util/__tests__/createWrapper' export * from './util/const' export * from './util/dummyGetters' +export * from './util/tests/createWrapper' diff --git a/packages/sanity/src/core/bundles/util/__tests__/createWrapper.tsx b/packages/sanity/src/core/bundles/util/tests/createWrapper.tsx similarity index 71% rename from packages/sanity/src/core/bundles/util/__tests__/createWrapper.tsx rename to packages/sanity/src/core/bundles/util/tests/createWrapper.tsx index ba6ebcc5fcac..68e827bd8ce6 100644 --- a/packages/sanity/src/core/bundles/util/__tests__/createWrapper.tsx +++ b/packages/sanity/src/core/bundles/util/tests/createWrapper.tsx @@ -2,12 +2,9 @@ import {studioTheme, ThemeProvider} from '@sanity/ui' import {type ReactNode} from 'react' import {createTestProvider} from '../../../../../test/testUtils/TestProvider' -import {releasesUsEnglishLocaleBundle} from '../../../releases/i18n' export const createWrapper = async () => { - const TestProvider = await createTestProvider({ - resources: [releasesUsEnglishLocaleBundle], - }) + const TestProvider = await createTestProvider() return function Wrapper({children}: {children: ReactNode}): JSX.Element { return (