Skip to content

Add shortcut RelativePath regression tests#22

Merged
valar12 merged 1 commit into
mainfrom
codex-shortcut-regression-tests
May 19, 2026
Merged

Add shortcut RelativePath regression tests#22
valar12 merged 1 commit into
mainfrom
codex-shortcut-regression-tests

Conversation

@valar12
Copy link
Copy Markdown
Owner

@valar12 valar12 commented May 19, 2026

Motivation

  • Lock down the OneDrive shortcut behaviors that were exercised while fixing subfolder shortcut creation/removal.
  • Prevent regressions around root creation, RelativePath placement, RelativePath removal, idempotent reruns, and conflict handling.

Description

  • Added Set-odscexShortcutState regression coverage for:
    • creating a shortcut at the OneDrive root
    • creating a shortcut directly in a RelativePath folder
    • treating an existing matching RelativePath shortcut as compliant
    • ConflictAction Skip, Error, Replace, and Rename inside RelativePath
  • Added a new Remove-odscex test file covering removal from a RelativePath folder.

Testing

  • pwsh -NoLogo -NoProfile -Command '$PesterConfiguration = New-PesterConfiguration; $PesterConfiguration.Run.Path = "tests"; $PesterConfiguration.Run.Exit = $true; $PesterConfiguration.Output.Verbosity = "Detailed"; Invoke-Pester -Configuration $PesterConfiguration' - 20 passed
  • git diff --check

@valar12 valar12 marked this pull request as ready for review May 19, 2026 01:37
@valar12 valar12 merged commit 40a0271 into main May 19, 2026
4 checks passed
@valar12 valar12 deleted the codex-shortcut-regression-tests branch May 19, 2026 20:30
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.

1 participant