MCPcopy
hub / github.com/testing-library/dom-testing-library / toString

Function toString

src/suggestions.js:49–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 variant,
48 warning,
49 toString() {
50 if (warning) {
51 console.warn(warning)
52 }
53 let [text, options] = queryArgs
54
55 text = typeof text === 'string' ? `'${text}'` : text
56
57 options = options
58 ? `, { ${Object.entries(options)
59 .map(([k, v]) => `${k}: ${v}`)
60 .join(', ')} }`
61 : ''
62
63 return `${queryMethod}(${text}${options})`
64 },
65 }
66}
67

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected