* @param {unknown} received received * @returns {string} serialized value
(received)
| 55 | * @returns {string} serialized value |
| 56 | */ |
| 57 | function serialize(received) { |
| 58 | return prettyFormat( |
| 59 | received, |
| 60 | /** @type {import("pretty-format").Options} */ ( |
| 61 | /** @type {unknown} */ (prettyFormatOptions) |
| 62 | ) |
| 63 | ) |
| 64 | .replace(CWD_PATTERN, "<cwd>") |
| 65 | .trim(); |
| 66 | } |
| 67 | |
| 68 | const prettyFormatOptions = { |
| 69 | escapeRegex: false, |