mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
Co-authored-by: neumaennl <[email protected]> Co-authored-by: Martin Neumann <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>
20 lines
388 B
TypeScript
20 lines
388 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
describe('MyModule', () => {
|
|
describe('feature A', () => {
|
|
it('works correctly', () => {
|
|
expect(1 + 1).toBe(2)
|
|
})
|
|
it('handles edge case', () => {
|
|
expect(0).toBe(0)
|
|
})
|
|
})
|
|
it('top-level in describe', () => {
|
|
expect(true).toBe(true)
|
|
})
|
|
})
|
|
|
|
it('top-level test', () => {
|
|
expect('hello').toBe('hello')
|
|
})
|