Skip to content

Commit 97404eb

Browse files
committed
disable warning log
1 parent 57c470d commit 97404eb

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

examples/app-vitest-full/tests/nuxt/mount-suspended.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -592,17 +592,17 @@ it('element should be changed', async () => {
592592
expect(component.element.tagName).toBe('SPAN')
593593
})
594594

595-
describe('composable state isolation', () => {
596-
const { useCounterMock } = vi.hoisted(() => {
597-
return {
598-
useCounterMock: vi.fn(() => {
599-
return {
600-
isPositive: (): boolean => false,
601-
}
602-
}),
603-
}
604-
})
595+
const { useCounterMock } = vi.hoisted(() => {
596+
return {
597+
useCounterMock: vi.fn(() => {
598+
return {
599+
isPositive: (): boolean => false,
600+
}
601+
}),
602+
}
603+
})
605604

605+
describe('composable state isolation', () => {
606606
mockNuxtImport('useCounter', () => {
607607
return useCounterMock
608608
})

examples/app-vitest-workspace/vitest.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ import { defineConfig } from 'vitest/config'
33
export default defineConfig({
44
test: {
55
projects: ['*/vitest*.config.ts'],
6+
onConsoleLog(log) {
7+
if (log.includes('<Suspense> is an experimental feature')) {
8+
return false
9+
}
10+
},
611
},
712
})

0 commit comments

Comments
 (0)