* Logs a test error * * @param {string} testName * @param {Error} err
(testName, err)
| 130 | * @param {Error} err |
| 131 | */ |
| 132 | function logError(testName, err) { |
| 133 | const {message} = err; |
| 134 | logWithoutTimestamp(red('✖'), 'Failed', cyan(testName)); |
| 135 | console /*OK*/ |
| 136 | .group(); |
| 137 | logWithoutTimestamp(message.split('\n').splice(3).join('\n')); |
| 138 | console /*OK*/ |
| 139 | .groupEnd(); |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Reports total number of passing / failing tests |
no test coverage detected