Skip to content

chore(dts): remove NO_COLOR workaround for Rstest - #1943

Merged
Timeless0911 merged 2 commits into
mainfrom
chore/remove-rstest-color-workaround
Sep 28, 2026
Merged

Timeless0911 merged 2 commits into
mainfrom
chore/remove-rstest-color-workaround

Conversation

@fi3ework

@fi3ework fi3ework commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Motivation

Rstest used to inject FORCE_COLOR=1 into test worker processes (on a TTY or with CI=true), so prettyTime in plugin-dts returned bold ANSI output and broke its plain-string assertions. process.env.NO_COLOR = '1' in the plugin-dts Rstest config was added to work around that.

Since @rstest/core 0.12.2 (web-infra-dev/rstest#1893), Rstest no longer writes any color env into workers.

Changes

  • Remove the NO_COLOR override from packages/plugin-dts/rstest.config.ts.
  • Raise the @rstest/core and @rstest/adapter-rslib catalog ranges to ^0.12.2 and refresh the lockfile accordingly.

With CI=true, the unit suite passes without the override. On @rstest/core 0.12.1, the prettyTime test fails without it.

Rstest no longer injects FORCE_COLOR into test workers since @rstest/core 0.12.2, so plugin-dts tests no longer need to disable colors. Refresh the lockfile to @rstest/core 0.12.2.
Copilot AI lite review requested due to automatic review settings September 28, 2026 05:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T05:19:50.589203Z 03a4a4e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Keep the catalog in sync with the lockfile, which already resolves 0.12.2.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The lockfile catalog specifiers must remain aligned with pnpm-workspace.yaml.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates Rstest to 0.12.2 and removes the obsolete NO_COLOR workaround from plugin-dts tests.

Changes:

  • Removes the NO_COLOR override.
  • Refreshes locked Rstest package versions.
  • Retains lockfile catalog specifiers aligned with pnpm-workspace.yaml.
File Summary
pnpm-lock.yaml Updates Rstest resolutions; catalog specifiers must remain ^0.12.0.
packages/​plugin-dts/​rstest.config.ts Removes the obsolete color workaround.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread pnpm-lock.yaml

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03a4a4ea06

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pnpm-lock.yaml
@Timeless0911
Timeless0911 merged commit 6cb9ed7 into main Sep 28, 2026
11 checks passed
@Timeless0911
Timeless0911 deleted the chore/remove-rstest-color-workaround branch September 28, 2026 05:28
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.

3 participants

Sponsor
SponsoredKunjungi sekarang
Promo