Skip to content

chore: replace chalk with picocolors and remove rimraf#1441

Open
roli-lpci wants to merge 2 commits intotesting-library:mainfrom
roli-lpci:remove-chalk-rimraf
Open

chore: replace chalk with picocolors and remove rimraf#1441
roli-lpci wants to merge 2 commits intotesting-library:mainfrom
roli-lpci:remove-chalk-rimraf

Conversation

@roli-lpci
Copy link

Summary

  • Replace chalk (~44KB installed) with picocolors (~3KB) in the test console call formatter
  • Replace rimraf in the prebuild script with native fs.rmSync() (safe since engines.node >= 18)
  • Net removal of 2 dependencies from devDependencies

Changes

  • tests/failOnUnexpectedConsoleCalls.js: chalkpicocolors (drop-in: red, gray, bold)
  • package.json: swap chalkpicocolors, remove rimraf, update prebuild script

Test plan

  • prebuild script runs clean (node -e "fs.rmSync('dist',{recursive:true,force:true})")
  • package.json validates as JSON
  • picocolors API is compatible (supports red, gray, bold)
  • CI passes

- Replace chalk (≈44KB) with picocolors (≈3KB) in test utility
- Replace rimraf prebuild script with native fs.rmSync (Node >=18)
- Net removal of 2 dependencies

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 27, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9b7e6fc:

Sandbox Source
react-testing-library-examples Configuration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant