Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Feb 13, 2025

Getting occasional failures in Cline.test.ts otherwise

/home/runner/work/Roo-Code/Roo-Code/src/core/Cline.ts:655
        this.abort = true;
                   ^

TypeError: Cannot set property abort of #<Cline> which has only a getter
    at Cline.abortTask (/home/runner/work/Roo-Code/Roo-Code/src/core/Cline.ts:750:13)
    at Cline.recursivelyMakeClineRequests (/home/runner/work/Roo-Code/Roo-Code/src/core/Cline.ts:2956:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Cline.initiateTaskLoop (/home/runner/work/Roo-Code/Roo-Code/src/core/Cline.ts:721:23)
    at Cline.startTask (/home/runner/work/Roo-Code/Roo-Code/src/core/Cline.ts:474:3)

Important

Fixes mock of abort property in Cline.test.ts by adding a setter to prevent test failures.

  • Tests:
    • Fixes mock of abort property in Cline.test.ts by adding a setter to prevent test failures due to abort being a getter-only property.

This description was created by Ellipsis for d6e7750. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2025

⚠️ No Changeset found

Latest commit: d6e7750

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mrubens mrubens merged commit b933ce4 into main Feb 13, 2025
9 checks passed
@mrubens mrubens deleted the fix_abort_mock branch February 13, 2025 21:41
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.

3 participants