testing-library / testing-library/dom-testing-library
Replace `chalk` with `picocolors`
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 474
- PR merge metrics
- No merged PRs in 30d
Description
Describe the feature you'd like:
I want to propose to replace the chalk dependency with the smaller and faster picocolors package.
As part of the e18e initiative (ecosystem cleanup), we try to reduce the burden of old or big libs and modernize the ecosystem.
Considering that chalk is used for exactly one style in the console output in this lib, it might be worthwhile to think about geeting rid of it at all :D.
chalk alone accounted for a whopping 907.93 GB of traffic last month whenever it got installed as part of dom-testing-library.
The tar size of 13.40Kb doesn't seem much (dom-testing-librarys tar is 434.14KB) but every bit counts :).
Suggested implementation:
Either use picocolor or inline the one styling you have.
In your case it would be a full drop-in repacement.
I would be willing to create the PR for you
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Search the repository and package manifest for chalk, then inspect the single console-output style use and run the existing test suite. Done means chalk is removed or replaced with picocolors without changing the console output or causing dependency-related test failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100