Skip to content

Conversation

gnapse
Copy link
Contributor

@gnapse gnapse commented Aug 14, 2025

See the linked issue #310 for all the details, including additional information about what the fix is, which is what's implemented in this PR.

This PR also includes new tests for moveTasks, beyond testing this very issue. This is because there were no tests for moveTasks before this work here. I decided to submit them in a new file because the file for task-related tests is already big enough.

@gnapse gnapse requested a review from pedroalves0 August 14, 2025 22:23
@gnapse gnapse self-assigned this Aug 14, 2025
Comment on lines +19 to +20
// Allow expect.any(), expect.objectContaining(), expect.arrayContaining() usage in test files
"@typescript-eslint/no-unsafe-assignment": "off"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not find a better way to get rid of eslint warning against the use of expect.objectContaining and expect.arrayContaining.

Another thing that eslint is warning against is the use of expect.any(String) in test files. Which is a great thing to do when we need it. That triggers a different eslint rule that I'd also consider overriding for test files, if we do not find a better way to make eslint compatible with it.

@scottlovegrove scottlovegrove merged commit 7b3be98 into main Aug 15, 2025
1 check passed
@scottlovegrove scottlovegrove deleted the fix-move-tasks branch August 15, 2025 11:44
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.

moveTasks only moves first task when multiple task IDs provided
2 participants