test: local Mercury integration tests (MERCURY_TOKEN via .env)#6
Open
ex3ndr-bot wants to merge 5 commits intoex3ndr:mainfrom
Open
test: local Mercury integration tests (MERCURY_TOKEN via .env)#6ex3ndr-bot wants to merge 5 commits intoex3ndr:mainfrom
ex3ndr-bot wants to merge 5 commits intoex3ndr:mainfrom
Conversation
- Add vitest + dotenv and npm scripts: - test (unit) - test:integration (local-only) - Add .env.example and ignore .env - Integration suite skips when MERCURY_TOKEN is missing - Add token redaction helper to avoid leaking secrets - Document local integration test setup in README
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Vitest-based unit tests + local-only integration tests that validate read-only Mercury API calls using .
Token handling
Run locally
See README section:
�[1m�[46m RUN �[49m�[22m �[36mv4.0.18 �[39m�[90m/home/steve/.daycare/workspace/maintainer/mercury-cli-integration-tests2�[39m
�[31m❯�[39m tests/integration/mercury-readonly.test.ts �[2m(�[22m�[2m0 test�[22m�[2m)�[22m
�[2m Test Files �[22m �[1m�[31m1 failed�[39m�[22m�[90m (1)�[39m
�[2m Tests �[22m �[2mno tests�[22m
�[2m Start at �[22m 19:08:09
�[2m Duration �[22m 143ms�[2m (transform 0ms, setup 0ms, import 0ms, tests 0ms, environment 0ms)�[22m
CI
Integration tests are not wired into any GitHub Actions workflow.