@@ -84,7 +84,7 @@ test('absolute path', async () => {
8484 const mockUtils = utils as jest . Mocked < typeof utils >
8585 mockUtils . resolve . mockImplementation ( ( ...paths ) => paths [ 0 ] )
8686 mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
87- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
87+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
8888 const writeFiles = { }
8989 const mockFS = fs as jest . Mocked < typeof fs >
9090 mockFS . readFileSync . mockImplementation ( path => {
@@ -120,7 +120,7 @@ test('relative path', async () => {
120120 . mockImplementationOnce ( ( ) => `${ TARGET_PATH } /src` )
121121 . mockImplementationOnce ( ( ...paths ) => `${ TARGET_PATH } /${ paths [ 0 ] } ` )
122122 mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
123- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
123+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
124124 const writeFiles = { }
125125 const mockFS = fs as jest . Mocked < typeof fs >
126126 mockFS . readFileSync . mockImplementation ( path => {
@@ -156,7 +156,7 @@ test('dryRun option', async () => {
156156 . mockImplementationOnce ( ( ) => `${ TARGET_PATH } /src` )
157157 . mockImplementationOnce ( ( ...paths ) => `${ TARGET_PATH } /${ paths [ 0 ] } ` )
158158 mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
159- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
159+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
160160 const mockFS = fs as jest . Mocked < typeof fs >
161161 mockFS . readFileSync . mockImplementation ( path => {
162162 if ( MOCK_FILES [ path as string ] ) {
@@ -186,7 +186,7 @@ test('match option', async () => {
186186 . mockImplementationOnce ( ( ) => `${ TARGET_PATH } /src` )
187187 . mockImplementationOnce ( ( ...paths ) => `${ TARGET_PATH } /${ paths [ 0 ] } ` )
188188 mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
189- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
189+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
190190 const writeFiles = { }
191191 const mockFS = fs as jest . Mocked < typeof fs >
192192 mockFS . readFileSync . mockImplementation ( p => {
@@ -226,7 +226,7 @@ test('bundle option', async () => {
226226 './test/fixtures/packages/package2/locales/**/*.json' : 'package2'
227227 } ) )
228228 mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( {
229- sfc : deepmerge ( messages , external ) ,
229+ main : deepmerge ( messages , external ) ,
230230 external : [ {
231231 path : './test/fixtures/packages/package1/locales/en/common.json' ,
232232 messages : {
@@ -285,7 +285,7 @@ test('ignore option', async () => {
285285 const mockUtils = utils as jest . Mocked < typeof utils >
286286 mockUtils . resolve . mockImplementation ( ( ...paths ) => paths [ 0 ] )
287287 mockUtils . loadNamespaceDictionary . mockImplementation ( async ( ) => ( { } ) )
288- mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { sfc : messages } ) )
288+ mockUtils . splitLocaleMessages . mockImplementation ( ( messages ) => ( { main : messages } ) )
289289 const writeFiles = { }
290290 const mockFS = fs as jest . Mocked < typeof fs >
291291 mockFS . readFileSync . mockImplementation ( path => {
0 commit comments