mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
27 lines
557 B
TypeScript
27 lines
557 B
TypeScript
import { describe, expect, test } from 'vitest'
|
|
|
|
describe('b2 passed', () => {
|
|
test.each([1, 2, 3])('b%d test', (d) => {
|
|
expect(d).toBe(d)
|
|
})
|
|
describe('nested b', () => {
|
|
test.each([1, 2, 3])('nested b%d test', (d) => {
|
|
expect(d).toBe(d)
|
|
})
|
|
})
|
|
})
|
|
|
|
describe('b2 failed', () => {
|
|
test.each([1, 2, 3])('b%d test', (d) => {
|
|
expect(d).toBe(d)
|
|
})
|
|
test('b failed test', () => {
|
|
expect(1).toBe(2)
|
|
})
|
|
describe('nested b', () => {
|
|
test.each([1, 2, 3])('nested b%d test', (d) => {
|
|
expect(d).toBe(d)
|
|
})
|
|
})
|
|
})
|