Skip to content

test: sort push source files by name before comparing - #1526

Draft
DaveHanns wants to merge 1 commit into
masterfrom
test/push-sort-source-files-by-name
Draft

DaveHanns wants to merge 1 commit into
masterfrom
test/push-sort-source-files-by-name

Conversation

@DaveHanns

Copy link
Copy Markdown
Contributor

The push API tests compare the version's sourceFiles with the locally collected list using .sort() without a comparator. On arrays of objects that sort is a no-op, so the assertions depend on the API and the local file listing returning files in the same order. That isn't guaranteed: "should work with actorId" failed once on #1504 with src/main.js and test/main.test.js swapped, then passed on re-run.

This sorts both sides by name in the three sourceFiles assertions in test/api/commands/push.test.ts.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
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