Skip to content

Commit

Permalink
chore(core): remove translations resources in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Sep 17, 2024
1 parent 5349454 commit 13dd049
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {type ReactNode} from 'react'
import {defineConfig} from 'sanity'

import {createTestProvider} from '../../../../../test/testUtils/TestProvider'
import {structureUsEnglishLocaleBundle} from '../../../../structure/i18n'
import {StudioAnnouncementsCard} from '../StudioAnnouncementsCard'

const config = defineConfig({
Expand All @@ -16,7 +15,7 @@ const config = defineConfig({
async function createAnnouncementWrapper() {
const wrapper = await createTestProvider({
config,
resources: [structureUsEnglishLocaleBundle],
resources: [],
})

return ({children}: {children: ReactNode}) => wrapper({children: <Menu>{children}</Menu>})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {type ReactNode} from 'react'
import {defineConfig} from 'sanity'

import {createTestProvider} from '../../../../../test/testUtils/TestProvider'
import {structureUsEnglishLocaleBundle} from '../../../../structure/i18n'
import {StudioAnnouncementsDialog} from '../StudioAnnouncementsDialog'
import {type StudioAnnouncementDocument} from '../types'

Expand Down Expand Up @@ -88,7 +87,7 @@ const config = defineConfig({
async function createAnnouncementWrapper() {
const wrapper = await createTestProvider({
config,
resources: [structureUsEnglishLocaleBundle],
resources: [],
})

return ({children}: {children: ReactNode}) => wrapper({children: <>{children}</>})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {type ReactNode} from 'react'
import {defineConfig} from 'sanity'

import {createTestProvider} from '../../../../../test/testUtils/TestProvider'
import {structureUsEnglishLocaleBundle} from '../../../../structure/i18n'
import {StudioAnnouncementsMenuItem} from '../StudioAnnouncementsMenuItem'
import {type StudioAnnouncementDocument} from '../types'
import {useStudioAnnouncements} from '../useStudioAnnouncements'
Expand Down Expand Up @@ -45,7 +44,7 @@ const config = defineConfig({
async function createAnnouncementWrapper() {
const wrapper = await createTestProvider({
config,
resources: [structureUsEnglishLocaleBundle],
resources: [],
})

return ({children}: {children: ReactNode}) => wrapper({children: <Menu>{children}</Menu>})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {type ReactNode} from 'react'
import {defineConfig} from 'sanity'

import {createTestProvider} from '../../../../../test/testUtils/TestProvider'
import {structureUsEnglishLocaleBundle} from '../../../../structure/i18n'
import {StudioAnnouncementsProvider} from '../StudioAnnouncementsProvider'
import {type StudioAnnouncementDocument} from '../types'
import {useSeenAnnouncements} from '../useSeenAnnouncements'
Expand Down Expand Up @@ -39,7 +38,7 @@ const config = defineConfig({
async function createAnnouncementWrapper() {
const wrapper = await createTestProvider({
config,
resources: [structureUsEnglishLocaleBundle],
resources: [],
})

return ({children}: {children: ReactNode}) =>
Expand Down

0 comments on commit 13dd049

Please sign in to comment.