mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
12 lines
210 B
TypeScript
12 lines
210 B
TypeScript
import { expect, it } from 'vitest';
|
|
|
|
it('skips correctly', ({ skip }) => {
|
|
skip(true)
|
|
expect.unreachable()
|
|
})
|
|
|
|
it('doesnt skip correctly', ({ skip }) => {
|
|
skip(false)
|
|
throw new Error('doesnt skip')
|
|
})
|