MCPcopy Create free account
hub / github.com/testing-library/user-event / getErrorMessage

Function getErrorMessage

src/keyboard/getNextKeyDef.ts:217–225  ·  view source on GitHub ↗
(
  expected: string,
  found: string | undefined,
  text: string,
)

Source from the content-addressed store, hash-verified

215}
216
217function getErrorMessage(
218 expected: string,
219 found: string | undefined,
220 text: string,
221) {
222 return `Expected ${expected} but found "${found ?? ''}" in "${text}"
223 See https://github.com/testing-library/user-event/blob/main/README.md#keyboardtext-options
224 for more information about how userEvent parses your input.`
225}

Callers 2

readTagFunction · 0.85
assertDescriptorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected