Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
Something went wrong. Try again.
TypeScript
123456789101112131415161718192021222324252627282930import { beforeAll, describe, expect, it } from 'vitest'
describe('successful suite', () => { it('successful child', () => { expect(true).toBe(true) })})
describe('hook failure suite', () => { beforeAll(() => { throw new Error('before-all-marker') })
it('blocked child', () => {})})
describe('child failure suite', () => { it('failing child', () => { throw new Error('direct-child-marker') })})
describe('nested failure suite', () => { describe('failing nested suite', () => { it('failing nested child', () => { throw new Error('nested-child-marker') }) })})