1+ import type { MessageCompilerContext } from '@intlify/core-base'
2+ import { compile , createMessageContext , isMessageAST } from '@intlify/core-base'
13import { expect , test } from 'vitest'
24import { bundleAndRun , getCurrentTestBundler } from './utils'
3- import { createMessageContext , isMessageAST , compile } from '@intlify/core-base'
4- import type { MessageCompilerContext } from '@intlify/core-base'
55
66const bundler = getCurrentTestBundler ( )
77
@@ -51,6 +51,7 @@ test('json: exclude locales when using mixed locales', async () => {
5151 } )
5252 expect ( module . __i18n ) . toMatchSnapshot ( )
5353
54+ // @ts -ignore -- test
5455 module . __i18n . forEach ( i18n => {
5556 expect ( i18n . resource . ja ) . toBeUndefined ( )
5657 expect ( i18n . locale ) . not . toBe ( 'ja' )
@@ -63,6 +64,7 @@ test('yaml: exclude locales when using mixed locales', async () => {
6364 } )
6465 expect ( module . __i18n ) . toMatchSnapshot ( )
6566
67+ // @ts -ignore -- test
6668 module . __i18n . forEach ( i18n => {
6769 expect ( i18n . resource . ja ) . toBeUndefined ( )
6870 expect ( i18n . locale ) . not . toBe ( 'ja' )
@@ -75,6 +77,7 @@ test('json5: exclude locales when using mixed locales', async () => {
7577 } )
7678 expect ( module . __i18n ) . toMatchSnapshot ( )
7779
80+ // @ts -ignore -- test
7881 module . __i18n . forEach ( i18n => {
7982 expect ( i18n . resource . ja ) . toBeUndefined ( )
8083 expect ( i18n . locale ) . not . toBe ( 'ja' )
0 commit comments