Files
vitest/test/browser/specs/__snapshots__/update-snapshot.test.ts.snap

49 lines
937 B
Plaintext

// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`update snapshot 1`] = `
"import { expect, test, vi } from 'vitest'
interface _BasicInterface {
willBeRemoved: boolean
leavingSourceMapIncorrect: boolean
}
test('inline snapshot', () => {
expect(1).toMatchInlineSnapshot('1')
})
test('basic', () => {
expect(1).toMatchSnapshot()
})
test('renders inline mock snapshot', () => {
const fn = vi.fn()
expect(fn).toMatchInlineSnapshot(\`[MockFunction]\`)
fn('hello', 'world', 2)
expect(fn).toMatchInlineSnapshot(\`
[MockFunction] {
"calls": [
[
"hello",
"world",
2,
],
],
"results": [
{
"type": "return",
"value": undefined,
},
],
}
\`)
})
test('file snapshot', async () => {
await expect('my snapshot content')
.toMatchFileSnapshot('./__snapshots__/custom/my_snapshot')
})
"
`;