Skip to content

test: add fast Vitest unit suite#135

Merged
InbarR merged 3 commits into
InbarR:mainfrom
Meir017:add-vitest-unit-suite
Jun 21, 2026
Merged

test: add fast Vitest unit suite#135
InbarR merged 3 commits into
InbarR:mainfrom
Meir017:add-vitest-unit-suite

Conversation

@Meir017

@Meir017 Meir017 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Vitest as the fast unit-test runner and make npm test run only tests/unit.
  • Move pure parser/security/clipboard specs from tests/e2e into tests/unit and convert them from Playwright test APIs to Vitest.
  • Split filesystem/git/backlog-writer coverage into tests/integration with a separate npm run test:integration command.
  • Run unit and integration tests before the packaged Electron e2e workflow and document when to use each suite.

Validation

  • npm test
  • npm run test:integration
  • npm run test:e2e -- --list

Meir017-msft and others added 3 commits June 16, 2026 10:23
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The integration helper built a single hand-quoted cmd.exe string, which
mangled repeated `--ac "value"` flags into stray positional args and
failed the real-CLI roundtrip test on Windows. Pass the command and its
args as separate argv tokens through cmd.exe so Node quotes each one.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@InbarR InbarR merged commit 9fa303a into InbarR:main Jun 21, 2026
5 of 6 checks passed
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