tryRegister is a hack to allow settings that get activated in the amazonq extension to run in core
Solution:
setup the amazonq project to run unit tests
Add "test" script to amazonq package.json
Move amazonq, feature dev, gumby, codewhisperer, codewhispererChat unit tests from core to amazonq. This requires us to export any required dependencies from their respective source folders
remove tryRegister in as many places as possible. See "Other notes" for the reason why we couldn't get rid of them all
Other notes:
A few test files need to override vscode api in order to function correctly. Those test files have been left in core because the overriding wasn't working from a seperate package. tryRegister remains for a few of those files that are left behind and still need it
A fallback for timer was needed when moving tests from core -> amazonq. It's unclear why these changes forced that fallback
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Problem:
Solution:
Other notes:
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.