-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
test(backend): kill many any
in backend test (partial)
#14054
Merged
syuilo
merged 46 commits into
misskey-dev:develop
from
KisaragiEffective:refactor/kill-any/backend-test
Jul 14, 2024
Merged
Changes from 44 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
37f6fda
kill any on utils:api
KisaragiEffective ee465c8
kill any on timeline test
KisaragiEffective 1c5e041
use optional chain to kill TS2532 on timeline test
KisaragiEffective 30abfac
kill `as any` for ApMfmService
KisaragiEffective dc54f93
kill argument any for api-visibility
KisaragiEffective 7dfd8f0
kill argument any across a few tests
KisaragiEffective 3b2bf5e
do not return value that has yielded from `await`-ing `Promise<void>`
KisaragiEffective 997b588
force cast
KisaragiEffective b99b7b5
runtime non-null assertion to coerce
KisaragiEffective a6db224
rewrite `assert.notEqual(expr, null)` to `assert.ok(expr)`
KisaragiEffective c884abb
change return type of `failedApiCall` to `void`
KisaragiEffective 9e7f22f
split bindings for exports.ts
KisaragiEffective 70ccbaa
runtime non-null assertion
KisaragiEffective e90854b
runtime non-null assertion
KisaragiEffective 48cf32c
何故かうまく行かないので、とりあえずXORしてみる
KisaragiEffective b3464e0
Revert "何故かうまく行かないので、とりあえずXORしてみる"
KisaragiEffective 03780bc
Merge branch 'develop' into refactor/kill-any/backend-test
KisaragiEffective 58ead0a
Merge branch 'develop' into refactor/kill-any/backend-test
KisaragiEffective 67718a5
castAsErrorで安全ではないキャストを隠蔽
KisaragiEffective 7f145fd
型アサーションの追加
KisaragiEffective 54ee883
Merge remote-tracking branch 'kisaragi/refactor/kill-any/backend-test…
KisaragiEffective 0be833b
型アサーションの追加
KisaragiEffective 6823408
型アサーションの追加
KisaragiEffective 79be8d6
voidで値を返さない
KisaragiEffective c81ce80
castAsError
KisaragiEffective e4bb517
assert.ok => kill nullability
KisaragiEffective fb69649
もはや明示的な型の指定は必要ない
KisaragiEffective a28ca99
castAsError
KisaragiEffective 8c777fe
castAsError
KisaragiEffective 48c541d
型アサーションの追加
KisaragiEffective 6871868
nullableを一旦抑止
KisaragiEffective 65919a4
変数を分離して型エラーを排除
KisaragiEffective 7f1fb71
不要なプロパティを削除する処理を隠蔽してanyを排除
KisaragiEffective fe95c05
Repository type
KisaragiEffective 0e6f9ae
simple type
KisaragiEffective b5a0c5b
assert.ok => kill nullability
KisaragiEffective 71b5e10
revert `as any` drop
KisaragiEffective 1f189a4
test: fix invalid assertion
KisaragiEffective f9f9de5
Merge branch 'develop' into refactor/kill-any/backend-test
KisaragiEffective 385ca7d
test: 52d8a54fc72b886fecb30a736b3ccf5057ea2a0c により型が合うようになった部分の`as an…
KisaragiEffective 1cd4e98
format
KisaragiEffective 80f1ad5
test: apply https://github.com/misskey-dev/misskey/pull/14054#discuss…
KisaragiEffective 0de43cf
Merge remote-tracking branch 'kisaragi/refactor/kill-any/backend-test…
KisaragiEffective 9090bff
test: use non-null assertion to suppress too many error
KisaragiEffective 2aea350
Update packages/backend/test/utils.ts
KisaragiEffective 91ee525
Merge branch 'develop' into refactor/kill-any/backend-test
KisaragiEffective File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここをPickに変更した意図はどういったものですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit/ApMfmService
が{ text: string, mentionedRemoteUsers: any[] }
を与えてその関数を呼び出していたためです: https://github.com/misskey-dev/misskey/pull/14054/files#diff-facbd928b8ce2116bfa431068a5c38d5ea30a3aaf4aa9a22a0eb366cf7caf442L26-L29