( expected: string, found: string | undefined, text: string, context: Context, )
| 135 | } |
| 136 | |
| 137 | function getErrorMessage( |
| 138 | expected: string, |
| 139 | found: string | undefined, |
| 140 | text: string, |
| 141 | context: Context, |
| 142 | ) { |
| 143 | return `Expected ${expected} but found "${found ?? ''}" in "${text}" |
| 144 | See ${ |
| 145 | context === 'pointer' |
| 146 | ? `https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen` |
| 147 | : `https://testing-library.com/docs/user-event/keyboard` |
| 148 | } |
| 149 | for more information about how userEvent parses your input.` |
| 150 | } |
no outgoing calls
no test coverage detected