Closed olafurpg closed 3 months ago
Closing since I'm still seeing the same CI failure
FAIL |agent| src/index.test.ts > Agent > Text documents > chat/submitMessage (understands the selected text)
AssertionError: the given combination of arguments (undefined and string) is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a string
❯ src/index.test.ts:649:41
647| { addEnhancedContext: true }
648| )
649| expect(reply?.text?.trim()).includes('anotherFunction')
| ^
650| expect(reply?.text?.trim()).not.includes('inner')
651| await client.changeFile(multipleSelectionsUri)
@olafurpg assuming we want this closed... closing.
@dominiccooney yes, sorry, this PR should be closed
This reverts commit 8ac4a7a. This commit made the tests flaky. Instead of removing usage of
CancellationError
, we implement this class in the mocks instead.Test plan
Non-flaky green CI