generated at
vi.toMatchSnapshot



snapshot fileが生成される
__snapshots__/xxx.test.ts.snap
exports[`adds 1 + 2 to equal 3 1`] = `3`;
test suit名でmatchさせている
そのため、test suitを変更すると新しいsnapshotが追記される
そうなった場合、元のやつは今後見られないのに残り続けることになる
test suit名の重複は問題ない
上記の例だと、最後の1がナンバリング


ts
it('toUpperCase', () => { const result = toUpperCase('foobar') expect(result).toMatchSnapshot() })