Repository navigation
test(server): standardize integration-test SUFFIX on hyphen separator - #3661
Merged
Merged
Conversation
Follow-up to #3656. Three integration test files still used `${process.pid}_${Date.now()}` (underscore separator) for their PID+timestamp SUFFIX: - property-enhancement-function.test.ts - brand-properties-parse.test.ts - addie-brand-property-tools.test.ts Underscores are invalid in domain names per RFC 1035. These three pass today because their TEST_DOMAIN never hits a regex-validating code path — property-enhancement skips validation; brand-properties-parse and addie-brand-property-tools mock out the routes that would. But the next test that adds a real `enrichBrand` / `expandHouse` call would rediscover the bug that #3656 just fixed. Switched to a hyphen across the board to match the convention established in #3656 (`brand-classifier-route`, `brand-enrichment-route`, `prospect-triage`). No behavior change for the existing tests; org/user IDs are still opaque strings, just with a hyphen instead of an underscore in the suffix. Verified locally: 39/39 tests pass across the three affected files. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.
Summary
Follow-up to #3656. Three integration test files still used
\${process.pid}_\${Date.now()}(underscore separator) for their PID+timestamp SUFFIX:server/tests/integration/property-enhancement-function.test.tsserver/tests/integration/brand-properties-parse.test.tsserver/tests/integration/addie-brand-property-tools.test.tsUnderscores are invalid in domain names per RFC 1035. These three pass today because their
TEST_DOMAINnever hits a regex-validating code path — property-enhancement skips validation; brand-properties-parse and addie-brand-property-tools mock the routes that would. But the next test that adds a realenrichBrand/expandHousecall would rediscover the same bug #3656 just fixed.Switched to a hyphen across the board to match the convention established in #3656 (
brand-classifier-route,brand-enrichment-route,prospect-triage). No behavior change for the existing tests — org/user IDs are still opaque strings, just with a hyphen instead of an underscore in the suffix.Surfaced as a follow-up nit during the
code-reviewerandnodejs-testing-expertreviews of #3655 (closed as superseded by #3656). Both flagged these three files as latent traps.Verification
🤖 Generated with Claude Code