Skip to content

🚀 Feature: Replace log-symbols with something smaller (maybe just inline it?) #5468

@valadaptive

Description

@valadaptive

Feature Request Checklist

Overview

In #5323, Mocha switched from ansi-colors to picocolors. However, the log-symbols package is pulling in chalk, yet another color library with a ton of dependencies.

Newer versions of log-symbols import yoctocolors instead, but that's still one more redundant color library in the dependencies, and those versions are ESM-only so we can't use them yet.

Suggested Solution

Simply inline the four Unicode symbols exported from log-symbols.

Alternatives

Wait for Mocha 12 when we can use ESM, bump log-symbols to the latest version, and eat the yoctocolors dependency.

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: in triagea maintainer should (re-)triage (review) this issuetype: featureenhancement proposal

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions