Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d95e4e

Browse files
committed
Prevent warning log during test
1 parent 2fd1f8a commit 0d95e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/vue/ssr.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ describe.skipIf(!isVue3)('ssr directive', () => {
6969

7070
it('warns when missing translation key', async () => {
7171
// Arrange
72-
const warnSpy = vi.spyOn(console, 'warn')
72+
const warnSpy = vi.spyOn(console, 'warn').mockImplementation(() => {})
7373

7474
const component = {
7575
template: '<a v-t href="/foo"></a>',

0 commit comments

Comments
 (0)