summaryrefslogtreecommitdiff
path: root/packages/backend/test/utils.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* split url into webUrl and localUrl (like mastodon)stableFreya Murphy17 hours1-2/+2
|
* fix TS errorsHazelnoot2025-06-131-1/+1
|
* pcleanup dependencies:Hazelnoot2025-06-121-2/+2
| | | | | | | * Consolidate multiple different HTML/XML/RSS libraries to use the Cheerio stack * Remove unused deps * Move dev dependencies to correct section * Pin versions where missing
* separate type imports for CheerioHazelnoot2025-05-081-1/+2
|
* replace JSDOM with cheerioHazelnoot2025-05-081-3/+3
|
* fix backend lint errorsHazelnoot2025-04-021-1/+3
|
* Revert "revert 7bfada9792bc4d29d47d3895643543cbe15191cd: enhance: remove ↵Hazelnoot2025-03-301-5/+1
| | | | | | bull-board support" This reverts commit d41d77fcd7c7c40b8409a22baecd0c0101db6e1e.
* revert 7bfada9792bc4d29d47d3895643543cbe15191cd: enhance: remove bull-board ↵Hazelnoot2025-03-251-1/+5
| | | | support
* merge upstreamHazelnoot2025-03-251-5/+1
|\
| * enhance: remove bull-board supportsyuilo2025-03-161-5/+1
| |
* | silence linter?dakkar2024-11-291-2/+2
|/ | | | it started complaining about that `true &&` all of a sudden
* feature: ユーザ作成時にSystemWebhookを発信できるようにする ↵おさむのひと2024-07-291-4/+51
| | | | | | | (#14321) * feature: ユーザ作成時にSystemWebhookを発信できるようにする * fix CHANGELOG.md
* test(backend): kill many `any` in backend test (partial) (#14054)Kisaragi2024-07-141-11/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * kill any on utils:api * kill any on timeline test * use optional chain to kill TS2532 on timeline test 変更前: 該当ノートが見つからなければundefinedに対するプロパティアクセスとしてテストがクラッシュ 変更後: 該当ノートが見つからなければoptional chainがundefinedとして評価されるが、strictEqualの右辺がnon-nullableなためアサーションに失敗しテストがクラッシュ * kill `as any` for ApMfmService * kill argument any for api-visibility * kill argument any across a few tests * do not return value that has yielded from `await`-ing `Promise<void>` * force cast * runtime non-null assertion to coerce * rewrite `assert.notEqual(expr, null)` to `assert.ok(expr)` こうすることでassertion type扱いになり、non-nullableになる * change return type of `failedApiCall` to `void` 戻り値がどこにも使われていない * split bindings for exports.ts 型が合わなくて文句を言ってくるので適切に分割 * runtime non-null assertion * runtime non-null assertion * 何故かうまく行かないので、とりあえずXORしてみる * Revert "何故かうまく行かないので、とりあえずXORしてみる" This reverts commit 48cf32c930924840d0892af92d71b9437acb5844. * castAsErrorで安全ではないキャストを隠蔽 * 型アサーションの追加 * 型アサーションの追加 * 型アサーションの追加 * voidで値を返さない * castAsError * assert.ok => kill nullability * もはや明示的な型の指定は必要ない * castAsError * castAsError * 型アサーションの追加 * nullableを一旦抑止 * 変数を分離して型エラーを排除 * 不要なプロパティを削除する処理を隠蔽してanyを排除 * Repository type * simple type * assert.ok => kill nullability * revert `as any` drop reverts fe95c05b3f53266108128680d9358a3796844232 partialy * test: fix invalid assertion partially revert b99b7b5392d9d20c81dfee1346ba8b33ff9e1fbb * test: 52d8a54fc72b886fecb30a736b3ccf5057ea2a0c により型が合うようになった部分の`as any`を除去 * format * test: apply https://github.com/misskey-dev/misskey/pull/14054#discussion_r1672369526 (part 1) * test: use non-null assertion to suppress too many error * Update packages/backend/test/utils.ts Co-authored-by: anatawa12 <anatawa12@icloud.com> --------- Co-authored-by: anatawa12 <anatawa12@icloud.com>
* Use built-in API (#14095)woxtu2024-07-021-8/+0
|
* test(backend): goodbye, Lenna (#14111)Kisaragi2024-07-021-1/+1
|
* fix(backend): ↵Kisaragi2024-06-221-2/+3
| | | | | | | | | | | | | | | | | | | フィードのノートのMFMはHTMLにレンダーしてから返す (#14006) * fix(backend): フィードのノートのMFMはHTMLにレンダーしてから返す (test wip) * chore: beforeEachを使う? * fix: プレーンテキストにフォールバックしてMFMが含まれていないか調べる方針を実装 * fix: application/jsonだとパースされるのでその作用をキャンセル * build: fix lint error * docs: update CHANGELOG.md --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* test(backend): refactor tests (#13499)zyoshoka2024-03-031-33/+28
| | | | | * test(backend): refactor tests * fix: failed test
* fix(backend): ↵zyoshoka2024-02-281-3/+3
| | | | | | | | | | | | | | | | | リノート時のHTLへのストリーミングの意図しない挙動を修正 (#13425) * fix(backend): リノート時のストリーミングの意図しない挙動を修正 * Update CHANGELOG.md * fix: 不要な返り値 * fix: 不適切な条件分岐を修正 * test(backend): add htl tests --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* Merge pull request from GHSA-qqrm-9grj-6v32tamaina2024-02-171-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | | * maybe ok * fix * test wip * :v: * fix * if (res.ok) * validateContentTypeSetAsJsonLD * 条件を考慮し直す * その他の+json接尾辞が付いているメディアタイプも受け容れる * https://github.com/misskey-dev/misskey-ghsa-qqrm-9grj-6v32/pull/1#discussion_r1490999009 * add `; profile="https://www.w3.org/ns/activitystreams"` * application/ld+json;
* (re) update SPDX-FileCopyrightTexttamaina2024-02-131-1/+1
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-131-14/+14
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-121-14/+14
|
* refactor: ↵YS2024-01-151-10/+53
| | | | | | | | | | | | | noteテーブルのインデックス整理と配列カラムへのクエリでインデックスを使うように (#12993) * Optimize note model index * enhance(backend): ANY()をやめる (MisskeyIO#239) * add small e2e test drive endpoint --------- Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>
* enhance(backend): テストの高速化 (#12939)おさむのひと2024-01-081-5/+44
| | | | | | | | | | | * enhance(backend): テストの高速化 * add ls * 自動的にマージされるようなので不要 * 起動方法を揃える * fix test
* feat: export clips (#12931)Kagami Sascha Rosylight2024-01-071-1/+1
| | | | | * feat: export clips * Update CHANGELOG.md
* feat(backend/oauth): allow CORS for token endpoint (#12814)Kagami Sascha Rosylight2023-12-271-0/+2
| | | | | | | * feat(backend/oauth): allow CORS for token endpoint * no need to explicitly set origin to `*` * Update CHANGELOG.md
* Merge pull request from GHSA-7pxq-6xx9-xpgmChocolate Pie2023-12-271-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: fix improper authorization when accessing with third-party application * refactor: refactor type definitions * fix: get rid of unnecessary access limitation * enhance: サードパーティアプリケーションがWebsocket APIを使えるように * fix: add missing parentheses * Revert "fix(backend): add missing kind definition for admin endpoints to improve security" This reverts commit 5150053275594278e9eb23e72d98b16593c4c230. * frontend: 翻訳の抜けを訂正, read:adminとwrite:adminはアクセス発行トークンのデフォルトでは非表示にする * enhance(test): misskey-ghsa-7pxq-6xx9-xpgmに関するテストを追加 * enhance(test): Websocket APIに対するテストも追加 * enhance(refactor): `@/misc/api-permissions.ts`を`misskey-js/permissions`に統合 * fix(frontend): アクセストークン発行UIで全ての権限を有効にした際、管理者用APIへのアクセスも許可してしまう問題を修正 * enhance(backend): Websocketの接続に最低限必要な権限を変更 * fix(backend): `/api/admin/meta`をサードパーティアプリケーションからはアクセスできないように * fix(backend): エンドポイントにアクセスするために必要な権限を変更 * fix(frontend/locale): Add missing type declaration * chore: update `misskey-js/src/autogen` --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* fix of 0bb0c32908syuilo2023-10-101-0/+2
|
* バックエンドのテストの改善 (#11978)FineArchs2023-10-071-5/+4
| | | | | * Update utils.ts * no async executer
* tweaksyuilo2023-10-041-1/+1
|
* feat: improve tl performance (#11946)syuilo2023-10-031-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * wip * wip * Update NoteCreateService.ts * wip * wip * wip * wip * Update NoteCreateService.ts * wip * Update NoteCreateService.ts * wip * Update user-notes.ts * wip * wip * wip * Update NoteCreateService.ts * wip * Update timeline.ts * Update timeline.ts * Update timeline.ts * Update timeline.ts * Update timeline.ts * wip * Update timelines.ts * Update timelines.ts * Update timelines.ts * wip * wip * wip * Update timelines.ts * Update misskey-js.api.md * Update timelines.ts * Update timelines.ts * wip * wip * wip * Update timelines.ts * wip * Update timelines.ts * wip * test * Update activitypub.ts * refactor: UserListJoining -> UserListMembership * Update NoteCreateService.ts * wip
* fixessyuilo2023-09-051-1/+1
|
* feat(backend): support OAuth 2.0 authorization (#11053)Kagami Sascha Rosylight2023-07-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(backend): support OAuth 2.0 authorization * secureRndstr fix * nanndekowareta * nanndekowareta2 * nanndekowareta3 * unref? * refactor to not close fastify * use microformats-parser * Update OAuth2ProviderService.ts * clarify the reason behind dns lookup * refactor(backend): use @types/oauth2orize-pkce (#11350) * refactor(backend): use @types/oauth2orize-pkce * Update package.json * Update pnpm-lock.yaml --------- Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com> --------- Co-authored-by: mtgto <hogerappa@gmail.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* chore: ↵Shun Sakai2023-07-271-0/+5
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor: 可読性のため一部で`Array.prototype.at`を使うように ↵okayurisotto2023-07-141-4/+4
| | | | | | | (#11274) * refactor: `Array.prototype.at`を使うように * fixup! refactor: `Array.prototype.at`を使うように
* feat(backend): accept OAuth bearer token (#11052)Kagami Sascha Rosylight2023-06-281-16/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(backend): accept OAuth bearer token * refactor * Update packages/backend/src/server/api/ApiCallService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * Update packages/backend/src/server/api/ApiCallService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * fix * kind: permission for account moved error * also for suspended error * Update packages/backend/src/server/api/StreamingApiServerService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor(backend/test): add `interface UserToken` (#11050)Kagami Sascha Rosylight2023-06-271-17/+19
|
* chore(backend, misskey-js): add type for signup (#11043)Kagami Sascha Rosylight2023-06-251-11/+11
| | | | | * chore(backend, misskey-js): add type for signup * rerun
* enhance(backend): migrate bull to bullmq (#10910)syuilo2023-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * Update QueueService.ts * wip * refactor * :v: * fix * Update QueueStatsService.ts * refactor * Update ApNoteService.ts * Update mock-resolver.ts * refactor * Update mock-resolver.ts
* test(backend): Add tests for antennas (#10868)Nanashia2023-05-191-0/+97
|
* test(backend): Add tests for users (#10546)Nanashia2023-04-121-4/+35
| | | Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* Revert "test"syuilo2023-04-071-1/+1
| | | | This reverts commit cb39db100aefd0d174567a186f9f37ffb95a2680.
* testsyuilo2023-04-071-1/+1
|
* Update packages/backend/test/utils.tssyuilo2023-03-221-1/+1
| | | Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* test(backend): Add tests for clips (#10358)Nanashia2023-03-191-0/+47
|
* test(backend): Add tests for web resources (#10341)Nanashia2023-03-181-4/+85
|
* fix(backend/DriveService): convert WebP/AVIF to WebP (#10239)Kagami Sascha Rosylight2023-03-101-1/+6
| | | | | | | | | | | | | | | | | | | | * fix(backend/DriveService): convert transparent WebP/AVIF to PNG * webpにする その希望が複数ありましたので * Update packages/backend/src/core/DriveService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * update test * webpはwebpublicにできる --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* feat: Per-user renote mute (#10249)syuilo2023-03-081-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: per-user renote muting From FoundKey/c414f24a2c https://akkoma.dev/FoundKeyGang/FoundKey * Update ja-JP.yml * Delete renote-muting.ts * rename * fix ids * lint * fix * Update CHANGELOG.md * リノートをミュートしたユーザー一覧を見れるように * :art: * add test * fix test --------- Co-authored-by: Hélène <pleroma-dev@helene.moe>
* test(backend): APIテストの復活 (#10163)Kagami Sascha Rosylight2023-03-031-0/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert 1c5291f8185651c231903129ee7c1cee263f9f03 * APIテストの復活 * apiテストの移行 * moduleNameMapper修正 * simpleGetでthrowしないように status確認しているので要らない * longer timeout * ローカルでは問題ないのになんで * case sensitive * Run Nest instance within the current process * Skip some setIntervals * wait for 5 seconds * kill them all!! * logHeapUsage: true * detectOpenHandlesがじゃましているらしい * maxWorkers=1? * restore drive api tests * workerIdleMemoryLimit: 500MB * 1024MiB * Wait what
* feat: 時限ロール (#10145)syuilo2023-03-011-317/+0
| | | | | | | | | | | | | | | * feat: 時限ロール * クライアントから期限を確認できるように * リファクタとか * fix test * fix test * fix test * clean up