( timeout: number, isHook: boolean, takesDoneCallback: boolean, )
| 175 | ); |
| 176 | |
| 177 | const _makeTimeoutMessage = ( |
| 178 | timeout: number, |
| 179 | isHook: boolean, |
| 180 | takesDoneCallback: boolean, |
| 181 | ) => |
| 182 | `Exceeded timeout of ${formatTime(timeout)} for a ${ |
| 183 | isHook ? 'hook' : 'test' |
| 184 | }${ |
| 185 | takesDoneCallback ? ' while waiting for `done()` to be called' : '' |
| 186 | }.\nAdd a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout.`; |
| 187 | |
| 188 | // Global values can be overwritten by mocks or tests. We'll capture |
| 189 | // the original values in the variables before we require any files. |
no test coverage detected