test(webhooks): move the events test into its section directory - #413
Merged
Merged
Conversation
The webhook events test was added flat beside the cross-section suites in the same hour the section mirror moved into test/sections/. The section selector refuses a section-named file there, so main's check job is red. The file moves to test/sections/webhooks/events.test.ts with its imports one level deeper.
Contributor
File size check0 over a hard cap (fails), 30 warning(s).
Split the file, wrap the line, shorten or exempt the comment, or list the path in 5 managed file(s) skipped; repo-platform owns them. |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The relocated test uses the correct relative import and matches the section layout convention.
Review effort: Balanced
Findings: None
What changed in this PR
Moves the webhook events test into its mirrored section directory so section-based test selection works correctly.
Changes:
- Relocates the webhook events test under
test/sections/webhooks/. - Updates its source import for the additional directory depth.
| File | Description |
|---|---|
test/sections/webhooks/events.test.ts |
Updates the webhook events import path after relocation. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Before / After
Before:
test/sections/webhooks-events.test.tssits flat beside the cross-section suites;changed-sectionsrefuses a section-named flat file there, sochecks / checkon main fails on one test.After:
test/sections/webhooks/events.test.ts, inside its section directory, where the mirror rule puts it.How
git mvof one file; its one relative import gains one../.Proof
bun test test/sections/webhooks/events.test.ts test/scripts/changed-sections.test.ts: 45 pass, 0 fail (the selector's file-map case is the one that was red on main).Line accounting
Reviewer note
BEGIN_COMMIT_OVERRIDE
test(webhooks): move the events test into its section directory
The webhook events test was added flat beside the cross-section suites in the same hour the section mirror moved into test/sections/.
The section selector refuses a section-named file there, so main's check job is red.
The file moves to test/sections/webhooks/events.test.ts with its imports one level deeper.
END_COMMIT_OVERRIDE