Files
klz-cables.com/.pnpm-store/v10/files/40/fa3ecb22c33390af26c1a279a78bd9736f66c58e8a907833bafd831ad0ed576f8dc35979f0ed1b9668b208203296d56259dd13cd8ff497ab7f5610b64c7ee1
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

14 lines
488 B
Plaintext

'use strict'
const { test } = require('node:test')
const stringifySafe = require('fast-safe-stringify')
const prettifyError = require('./prettify-error')
test('prettifies error', t => {
const error = Error('Bad error!')
const lines = stringifySafe(error, Object.getOwnPropertyNames(error), 2)
const prettyError = prettifyError({ keyName: 'errorKey', lines, ident: ' ', eol: '\n' })
t.assert.match(prettyError, /\s*errorKey: {\n\s*"stack":[\s\S]*"message": "Bad error!"/)
})