MCPcopy
hub / github.com/vitest-dev/vitest / formatCustom

Function formatCustom

test/snapshots/test/fixtures/custom-matcher/basic.test.ts:21–26  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

19}
20
21function formatCustom(input: string) {
22 return {
23 reversed: input.split('').reverse().join(''),
24 length: input.length,
25 }
26}
27
28expect.extend({
29 toMatchCustomSnapshot(actual: string, properties?: object) {

Callers 4

toMatchCustomSnapshotFunction · 0.85
innerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected