mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +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)
|
|
})
|
|
})
|