(str: string)
| 9 | import runJest from '../runJest'; |
| 10 | |
| 11 | const extractMessage = (str: string) => |
| 12 | extractSummary(str) |
| 13 | .rest.replaceAll( |
| 14 | // circus-jasmine normalization |
| 15 | /.+addSpecsToSuite (.+:\d+:\d+).+\n/g, |
| 16 | '', |
| 17 | ) |
| 18 | .match( |
| 19 | // all lines from the first to the last mentioned "describe" after the "●" line |
| 20 | /●(.|\n)*?\n(?<lines>.*describe((.|\n)*describe)*.*)(\n|$)/imu, |
| 21 | )?.groups?.lines ?? ''; |
| 22 | |
| 23 | it('errors if describe returns a Promise', () => { |
| 24 | const result = runJest('declaration-errors', [ |
no test coverage detected