-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace as
with satisfies
keyword
#19856
Comments
renovate/lib/modules/manager/cocoapods/artifacts.spec.ts Lines 115 to 117 in 3a58d23
There are many tests where such assertions are used. I don't think we can use const mockStatusResult: StatusResult = { ...haveAllStrictFields }
..
git.getRepoStatus.mockResolvedValueOnce(mockStatusResult);
git.getRepoStatus.mockResolvedValueOnce({ ...mockStatusResult, modified:['somefile']}); |
we should probably use our partial helper function there. |
Do we need to update our developer best practice documentation 1 to tell contributors/maintainers to use Footnotes |
yes please |
@RahulGautamSingh much work left here? |
There are still some test files where we use |
Describe the proposed change(s).
Typescript recently got a new keyword satisfies. In a recent discussion on the Slack channel it was agreed upon to replace
as
withsatisfies
There some detailed info this issue.
I am not sure if all instances of
as
need to be repalced. If they can be good, else I will list the reasons as I find them andthis issue will be used to track all related updates/changes on that topic.
The text was updated successfully, but these errors were encountered: