mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
16 lines
274 B
TypeScript
16 lines
274 B
TypeScript
import { assert, describe, expect, it } from 'vitest'
|
|
|
|
describe('suite name', () => {
|
|
it('foo', () => {
|
|
assert.equal(Math.sqrt(4), 2)
|
|
})
|
|
|
|
it('bar', () => {
|
|
expect(1 + 1).eq(2)
|
|
})
|
|
|
|
it('snapshot', () => {
|
|
expect({ foo: 'bar' }).toMatchSnapshot()
|
|
})
|
|
})
|