Skip to content

feat: add named vitest instances - #107

Merged
jxom merged 3 commits into
mainfrom
jxom/vitest-named-instances
Sep 4, 2026
Merged

jxom merged 3 commits into
mainfrom
jxom/vitest-named-instances

Conversation

@jxom

@jxom jxom commented Sep 4, 2026

Copy link
Copy Markdown
Member

Added named instances to Vitest Server.setup and Pool.setup for multiple isolated instances per worker, with independent lifecycle controls and cleanup. Preserved the single-instance API.

@pkg-pr-new

pkg-pr-new Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/prool@107

commit: 59e4450

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 4, 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-04T04:13:11.425050Z 5c4c357 New commits
ℹ️ 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.

@jxom
jxom merged commit 1c26fa8 into main Sep 4, 2026
4 checks passed
@jxom
jxom deleted the jxom/vitest-named-instances branch September 4, 2026 04:09
@github-actions github-actions Bot mentioned this pull request Sep 4, 2026

@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: 5c4c357e20

ℹ️ 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 src/Pool.ts
Comment on lines +336 to +337
const host = instance.host.includes(':') ? instance.host : '0.0.0.0'
const { port = await getPort({ host }) } = options

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Probe IPv6 for hostname-bound instances

When an instance advertises a hostname that resolves to IPv6, such as localhost on an IPv6-first system, this branch probes only 0.0.0.0. A port already occupied by an IPv6-only listener can therefore be selected and then fail with EADDRINUSE when the instance binds the hostname. Probe both address families for hostnames, rather than treating every host without a colon as IPv4-only.

Useful? React with 👍 / 👎.

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