@@ -84,7 +84,7 @@ test('absolute path', async () => {
84
84
const mockUtils = utils as jest . Mocked < typeof utils >
85
85
mockUtils . resolve . mockImplementation ( ( ...paths ) => paths [ 0 ] )
86
86
mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
87
- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
87
+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
88
88
const writeFiles = { }
89
89
const mockFS = fs as jest . Mocked < typeof fs >
90
90
mockFS . readFileSync . mockImplementation ( path => {
@@ -120,7 +120,7 @@ test('relative path', async () => {
120
120
. mockImplementationOnce ( ( ) => `${ TARGET_PATH } /src` )
121
121
. mockImplementationOnce ( ( ...paths ) => `${ TARGET_PATH } /${ paths [ 0 ] } ` )
122
122
mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
123
- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
123
+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
124
124
const writeFiles = { }
125
125
const mockFS = fs as jest . Mocked < typeof fs >
126
126
mockFS . readFileSync . mockImplementation ( path => {
@@ -156,7 +156,7 @@ test('dryRun option', async () => {
156
156
. mockImplementationOnce ( ( ) => `${ TARGET_PATH } /src` )
157
157
. mockImplementationOnce ( ( ...paths ) => `${ TARGET_PATH } /${ paths [ 0 ] } ` )
158
158
mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
159
- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
159
+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
160
160
const mockFS = fs as jest . Mocked < typeof fs >
161
161
mockFS . readFileSync . mockImplementation ( path => {
162
162
if ( MOCK_FILES [ path as string ] ) {
@@ -186,7 +186,7 @@ test('match option', async () => {
186
186
. mockImplementationOnce ( ( ) => `${ TARGET_PATH } /src` )
187
187
. mockImplementationOnce ( ( ...paths ) => `${ TARGET_PATH } /${ paths [ 0 ] } ` )
188
188
mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
189
- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
189
+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
190
190
const writeFiles = { }
191
191
const mockFS = fs as jest . Mocked < typeof fs >
192
192
mockFS . readFileSync . mockImplementation ( p => {
@@ -226,7 +226,7 @@ test('bundle option', async () => {
226
226
'./test/fixtures/packages/package2/locales/**/*.json' : 'package2'
227
227
} ) )
228
228
mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( {
229
- sfc : deepmerge ( messages , external ) ,
229
+ main : deepmerge ( messages , external ) ,
230
230
external : [ {
231
231
path : './test/fixtures/packages/package1/locales/en/common.json' ,
232
232
messages : {
@@ -285,7 +285,7 @@ test('ignore option', async () => {
285
285
const mockUtils = utils as jest . Mocked < typeof utils >
286
286
mockUtils . resolve . mockImplementation ( ( ...paths ) => paths [ 0 ] )
287
287
mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
288
- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
288
+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
289
289
const writeFiles = { }
290
290
const mockFS = fs as jest . Mocked < typeof fs >
291
291
mockFS . readFileSync . mockImplementation ( path => {
0 commit comments