Skip to content

Commit 40a778a

Browse files
committed
fix translation pathing and associated failing tests
1 parent 09bbcb9 commit 40a778a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/template-chakra-storefront/src/hooks/use-product-view-modal.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {IntlProvider} from 'react-intl'
1515
import mockProductDetail from '../../mocks/variant-750518699578M'
1616
import {useProductViewModal} from './use-product-view-modal'
1717
import {DEFAULT_LOCALE, renderWithProviders} from '../utils/test-utils'
18-
import messages from '../../static/translations/compiled/en-GB.json'
18+
import messages from '../static/translations/compiled/en-GB.json'
1919
import {rest} from 'msw'
2020

2121
jest.mock('@salesforce/commerce-sdk-react', () => {

packages/template-chakra-storefront/src/utils/locale.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jest.mock('cross-fetch', () => {
1919
}
2020

2121
const locale = matched[1]
22-
const json = await import(`../../static/translations/compiled/${locale}.json`)
22+
const json = await import(`../static/translations/compiled/${locale}.json`)
2323

2424
return {
2525
ok: true,

0 commit comments

Comments
 (0)