Skip to content

Commit 657f49b

Browse files
committed
fix: type errors
1 parent 160628d commit 657f49b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/unplugin-vue-i18n/test/custom-block.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import type { MessageCompilerContext } from '@intlify/core-base'
2+
import { compile, createMessageContext, isMessageAST } from '@intlify/core-base'
13
import { expect, test } from 'vitest'
24
import { bundleAndRun, getCurrentTestBundler } from './utils'
3-
import { createMessageContext, isMessageAST, compile } from '@intlify/core-base'
4-
import type { MessageCompilerContext } from '@intlify/core-base'
55

66
const 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')

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,6 @@
8383
],
8484
"exclude": [
8585
"unmaintained/**/*",
86+
"**/fixtures/**",
8687
]
8788
}

0 commit comments

Comments
 (0)