mirror of
https://github.com/hanzoai/jest.git
synced 2026-10-30 14:46:24 +00:00
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
||
|
||
exports[`can press "u" to update snapshots: test results 1`] = `
|
||
"FAIL __tests__/bar.spec.js
|
||
✕ bar
|
||
|
||
● bar
|
||
|
||
expect(received).toMatchSnapshot()
|
||
|
||
Snapshot name: \`bar 1\`
|
||
|
||
Snapshot: "foo"
|
||
Received: "bar"
|
||
|
||
> 1 | test('bar', () => { expect('bar').toMatchSnapshot(); });
|
||
| ^
|
||
|
||
at Object.toMatchSnapshot (__tests__/bar.spec.js:1:35)
|
||
|
||
› 1 snapshot failed.
|
||
Snapshot Summary
|
||
› 1 snapshot failed from 1 test suite. Inspect your code changes or press \`u\` to update them."
|
||
`;
|
||
|
||
exports[`can press "u" to update snapshots: test results 2`] = `
|
||
"PASS __tests__/bar.spec.js
|
||
✓ bar
|
||
|
||
› 1 snapshot updated.
|
||
Snapshot Summary
|
||
› 1 snapshot updated from 1 test suite."
|
||
`;
|
||
|
||
exports[`can press "u" to update snapshots: test summary 1`] = `
|
||
"Test Suites: 1 failed, 1 total
|
||
Tests: 1 failed, 1 total
|
||
Snapshots: 1 failed, 1 total
|
||
Time: <<REPLACED>>
|
||
Ran all test suites."
|
||
`;
|
||
|
||
exports[`can press "u" to update snapshots: test summary 2`] = `
|
||
"Test Suites: 1 passed, 1 total
|
||
Tests: 1 passed, 1 total
|
||
Snapshots: 1 updated, 1 total
|
||
Time: <<REPLACED>>
|
||
Ran all test suites."
|
||
`;
|