Skip to content

feat(cli): export vitest in /test sub path#205

Merged
Brooooooklyn merged 1 commit intomainfrom
09-25-feat_cli_export_vitest_in__test_sub_path
Sep 25, 2025
Merged

feat(cli): export vitest in /test sub path#205
Brooooooklyn merged 1 commit intomainfrom
09-25-feat_cli_export_vitest_in__test_sub_path

Conversation

@Brooooooklyn
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings September 25, 2025 13:26
Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds vitest export capability through a /test sub path in the CLI package, allowing users to import vitest testing utilities directly from @voidzero-dev/vite-plus/test.

  • Moves test resolution logic from test.ts to resolve-test.ts and replaces test.ts with vitest re-exports
  • Updates package.json to include a new /test export path
  • Updates build configuration to include the new test module and exclude vitest from bundling

Reviewed Changes

Copilot reviewed 7 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pnpm-workspace.yaml Updates oxfmt version from 0.2.0 to 0.3.0
packages/tools/src/tests/utils.spec.ts Changes vitest import to use the new /test sub path
packages/cli/src/test.ts Replaces test resolution function with vitest re-exports
packages/cli/src/resolve-test.ts New file containing the moved test resolution logic
packages/cli/src/bin.ts Updates imports to use new resolve-* file names
packages/cli/package.json Adds /test export configuration
packages/cli/build.ts Updates build to include test.ts and mark vitest as external
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Copy Markdown

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

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.

ℹ️ 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 👍.

Comment thread packages/tools/src/__tests__/utils.spec.ts
@Brooooooklyn Brooooooklyn force-pushed the 09-25-feat_cli_export_vitest_in__test_sub_path branch from 58b04e5 to ad52f67 Compare September 25, 2025 13:34
@Brooooooklyn Brooooooklyn merged commit 4eaf174 into main Sep 25, 2025
9 checks passed
Copy link
Copy Markdown
Member Author

Merge activity

@Brooooooklyn Brooooooklyn deleted the 09-25-feat_cli_export_vitest_in__test_sub_path branch September 25, 2025 13:39
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