Skip to content

test: cherry-pick .NET detection test fix to main (from #1030)#1031

Merged
bradygaster merged 3 commits into
mainfrom
fix/cherry-pick-dotnet-tests-to-main
Apr 24, 2026
Merged

test: cherry-pick .NET detection test fix to main (from #1030)#1031
bradygaster merged 3 commits into
mainfrom
fix/cherry-pick-dotnet-tests-to-main

Conversation

@tamirdresher

Copy link
Copy Markdown
Collaborator

Cherry-pick of #1030 from dev to main.

The 3 .NET detection tests (slnx, fsproj, vbproj) in migrate-directory.test.cjs were written when \squad init\ still created CI workflows. Since PR #847, init skips CI/CD workflows (by design), so these tests now use init + upgrade instead.

This is the last fix needed for the 0.9.4 release — main currently shows 127/130 tests passing, these 3 are the remaining failures.

Same fix as PR #1030 on dev. Changes 3 tests in Group 6 from init-only
to init+upgrade pattern, matching the behavior change from PR #847.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tamirdresher tamirdresher force-pushed the fix/cherry-pick-dotnet-tests-to-main branch from e3b2252 to 39dc815 Compare April 23, 2026 06:08
Copilot and others added 2 commits April 24, 2026 21:36
When TEST_ROOT is inside the repo, detectParentGitRepo() redirects
agent file placement to the git root instead of TEST_ROOT, causing
test assertions to fail. Using os.tmpdir() places the test directory
outside any git repo, matching the fix already on dev.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- init.test.ts: use tmpdir() instead of process.cwd() to avoid monorepo detection
- loop.test.ts: update error regex from /gh CLI/ to /Copilot CLI/ to match new message
- template-sync.test.ts: add beforeAll sync and bump timeout to 60s

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster bradygaster merged commit 2c7e414 into main Apr 24, 2026
11 of 12 checks passed
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.

2 participants