test(linting): update mock scoping to target LintingHelpers module#406
test(linting): update mock scoping to target LintingHelpers module#406shaominngqing wants to merge 1 commit intomicrosoft:mainfrom
Conversation
- Add -ModuleName LintingHelpers to all mocks of extracted functions - Affects Get-ChangedFilesFromGit, Get-FilesRecursive, Write-GitHubAnnotation, Set-GitHubOutput, Set-GitHubEnv, and Write-GitHubStepSummary - Ensures mocks target the correct function scope after refactoring in microsoft#379 Fixes microsoft#396
|
With the initial referenced PR being closed and superseded by #401, @WilliamBerryiii can comment if we should still address this, in that case we need the PR to be merged first, rebase this branch, and changes needed as some changes affect this PR. |
|
Hi @shaominngqing, thank you for your contribution and for taking the time to work on this! Unfortunately, we need to close this PR. The codebase has evolved significantly since issue #396 was created:
The current session-level mocking strategy is correct for our module architecture. We're also closing issue #396 as invalid. We appreciate your effort and hope you'll consider contributing again in the future! |
Fixes #396
Pull Request
Description
Related Issue(s)
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
prompt-builderagent and addressed all feedback.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md)Other:
.ps1,.sh,.py)Sample Prompts (for AI Artifact Contributions)
User Request:
Execution Flow:
Output Artifacts:
Success Indicators:
For detailed contribution requirements, see:
Testing
Checklist
Required Checks
AI Artifact Contributions
/prompt-analyzeto review contributionprompt-builderreviewRequired Automated Checks
The following validation commands must pass before merging:
npm run lint:mdnpm run spell-checknpm run lint:frontmatternpm run lint:md-linksnpm run lint:psSecurity Considerations
Additional Notes