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.
123456789101112import { expect, test } from 'vitest'
test('toMatchInlineSnapshot', () => { expect.soft('--snap-1--').toMatchInlineSnapshot(`"--snap-1--"`) expect.soft('--snap-2--').toMatchInlineSnapshot(`"--snap-2--"`)})
test('toThrowErrorMatchingInlineSnapshot', () => { expect.soft(() => { throw new Error('--error-1--') }).toThrowErrorMatchingInlineSnapshot(`[Error: --error-1--]`) expect.soft(() => { throw new Error('--error-2--') }).toThrowErrorMatchingInlineSnapshot(`[Error: --error-2--]`)})