| | |
| | | Object.defineProperty(exports, '__esModule', { |
| | | value: true |
| | | }); |
| | | exports.default = void 0; |
| | | exports.default = formatTestNameByPattern; |
| | | |
| | | function _chalk() { |
| | | const data = _interopRequireDefault(require('chalk')); |
| | |
| | | const DOTS = '...'; |
| | | const ENTER = '⏎'; |
| | | |
| | | var _default = (testName, pattern, width) => { |
| | | function formatTestNameByPattern(testName, pattern, width) { |
| | | const inlineTestName = testName.replace(/(\r\n|\n|\r)/gm, ENTER); |
| | | let regexp; |
| | | |
| | |
| | | return `${_chalk().default.dim(slicedTestName)}${_chalk().default.reset( |
| | | DOTS |
| | | )}`; |
| | | }; |
| | | |
| | | exports.default = _default; |
| | | } |