mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
11 lines
252 B
TypeScript
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)
|
|
})
|
|
})
|