Skip to content

test: ✅ initialize test suit#1

Open
lorenzo-mignola wants to merge 14 commits intodavidnussio:mainfrom
lorenzo-mignola:test/initialize-tests
Open

test: ✅ initialize test suit#1
lorenzo-mignola wants to merge 14 commits intodavidnussio:mainfrom
lorenzo-mignola:test/initialize-tests

Conversation

@lorenzo-mignola
Copy link
Copy Markdown

Summary

This PR introduces unit testing to the project using Vitest. It establishes the testing infrastructure and includes an initial test suite for the list command.

Changes

🧪 Testing Infrastructure

  • Added vitest as a development dependency.
  • Configured the test script in package.json.
  • Implemented initial unit tests for the list command to verify core functionality.

🛠 Refactoring for Testability

  • Decoupled CLI Subcommands: Moved the subcommand array into a separate module. Previously, the CLI structure was difficult to access programmatically; this move allows the test suite to import the CLI configuration directly for validation without side effects.

How to Verify

To run the new test suite, use the following command:

pnpm run test

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

@lorenzo-mignola is attempting to deploy a commit to the David Nussio's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

2 participants