vitest/test/cli/fixtures/fails/hook-timeout.test.ts
2024-04-26 15:43:27 +02:00

11 lines
252 B
TypeScript

import { beforeEach, describe, expect, it } from 'vitest'
describe('hooks should timeout', () => {
beforeEach(async () => {
await new Promise(resolve => setTimeout(resolve, 20))
}, 10)
it('hello', () => {
expect(true).toBe(true)
})
})