mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
41 lines
568 B
TypeScript
41 lines
568 B
TypeScript
import { describe, expect, test } from 'vitest'
|
|
|
|
function foo() {}
|
|
class Bar {}
|
|
|
|
describe(foo, () => {
|
|
test(Bar, () => {
|
|
expect(0).toBe(0)
|
|
})
|
|
})
|
|
|
|
describe(Bar, () => {
|
|
test(foo, () => {
|
|
expect(0).toBe(0)
|
|
})
|
|
})
|
|
|
|
describe(() => {}, () => {
|
|
test(foo, () => {
|
|
expect(0).toBe(0)
|
|
})
|
|
})
|
|
|
|
describe(foo, () => {
|
|
test(() => {}, () => {
|
|
expect(0).toBe(0)
|
|
})
|
|
})
|
|
|
|
describe.each([1])(foo, () => {
|
|
test.each([1])(foo, () => {
|
|
expect(0).toBe(0)
|
|
})
|
|
})
|
|
|
|
describe.each([1])(Bar, () => {
|
|
test.each([1])(Bar, () => {
|
|
expect(0).toBe(0)
|
|
})
|
|
})
|