summaryrefslogtreecommitdiff
path: root/packages/backend/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* split url into webUrl and localUrl (like mastodon)Freya Murphy2 days4-10/+10
|
* chore(backend): FileServerServiceのunit-testを追加 (#17086)おさむのひと2026-01-112-0/+770
| | | | | | | * add test * fix * fix type error
* enable and fix no-unused-vars and no-async-promise-executor (#17070)anatawa122026-01-081-26/+17
| | | | | | | | | * dev: set --no-bail for lint task * lint: enable no-async-promise-executor lint and fix them * lint: enable no-unused-vars with allowing _ prefix * lint: fix semi
* refactor: ↵おさむのひと2026-01-062-0/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | DriveFileEntityServiceとDriveFolderEntityServiceの複数件取得をリファクタ (#17064) * refactor: DriveFileEntityServiceとDriveFolderEntityServiceの複数件取得をリファクタ * add test * fix * Update packages/backend/src/core/entities/DriveFolderEntityService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/backend/test/unit/entities/DriveFolderEntityService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/backend/src/core/entities/DriveFileEntityService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Revert "Update packages/backend/src/core/entities/DriveFileEntityService.ts" This reverts commit 83bb9564cfdb699a21b775815439e1e496cd89a9. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* enhance(backend/oauth): Support client information discovery in the ↵かっこかり2025-12-311-146/+276
| | | | | | | | | | | | | | | IndieAuth 11 July 2024 spec (#17030) * enhance(backend): Support client information discovery in the IndieAuth 11 July 2024 spec * add tests * Update Changelog * Update Changelog * fix tests * fix test describe to align with the other describe format
* chore: SearchServiceのunit-test追加 (#17035)おさむのひと2025-12-282-0/+491
| | | | | | | | | | | * add serach service test * add meili test * CIの修正が足りなかった * テストの追加 * fix
* feat: use tsgo where capable (#16984)anatawa122025-12-221-1/+0
|
* fix(backend): fix tests (#16947)かっこかり2025-12-062-31/+65
| | | | | * fix(backend): shouldHideNoteByTimeのロジックの誤りを修正 * fix tests
* Merge commit from forkおさむのひと2025-12-061-0/+131
|
* enhance(backend): pugをやめ、JSXベースのテンプレートに変更 ↵かっこかり2025-12-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#16908) * enhance(backend): pugをやめ、JSXベースのテンプレートに変更 (to misskey-dev dev branch) (#16889) * wip * wip * wip * wip * fix lint * attempt to fix test * fix * fix * fix: oauthページの描画がおかしい問題を修正 * typo [ci skip] * fix * fix * fix * fix * fix * refactor * fix * fix * fix broken lockfile * fix: expose supported languages as global variable * remove i18n package from root as it is no longer required [ci skip] * fix * fix: add i18n package.json to Docker target-builder stage for federation tests (#16909) * Initial plan * fix: add i18n package.json to Docker target-builder stage for federation tests Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> * fix: followup-test-federation for enh-remove-pug (#16910) * fix: followup-test-federation for enh-remove-pug * Revert "fix: add i18n package.json to Docker target-builder stage for federation tests (#16909)" This reverts commit 14313468d34f49c363eef4d0a932e9fc0d9a37fb. * fix: CSSが読み込まれない場合がある問題を修正 * fix [ci skip] * fix: propsのデフォルト値をnull合体演算子から論理和演算子に変更(空文字に対処するため) * remove @types/pug * enhance: bootloaderを埋め込むように * fix possible race condition * remove esbuild --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> Co-authored-by: おさむのひと <46447427+samunohito@users.noreply.github.com>
* fix(deps): update [backend] update dependencies (major) (#16099)renovate[bot]2025-11-3011-23/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(deps): update [backend] update dependencies * update approve builds * update minimum node version for testing * remove types/bcryptjs * fix(backend): remove removed type previously exported from file-type * migrate webauthnservice * Update Changelog * update deps (MisskeyIO#889) - メンテナンスされないredis-lockを自前実装に変更 - 既にロックされている場合のリトライ間隔を調整 * use main redis for lock * spdx * tweak max retries * [ci skip] dedupe * attempt to fix test * attempt to fix test * Revert "attempt to fix test" This reverts commit c508318627e4ffab030e1acf5182f58cc2eb51d8. * temporarily roll back simonjs/fake-timers to v11.3.1 * Revert "temporarily roll back simonjs/fake-timers to v11.3.1" This reverts commit 54f1fc3d7917089e05b20fc5b86435e3f5e5b040. * migrate sinonjs/fake-timers * update deps / migrate jest 30 * fix test * fix: update node.js min version to 20.18.1 * fix: rollback nsfwjs to 4.2.0 * fix * attempt to fix test * attempt to fix test * attempt to fix test * attempt to fix test * revert jest 30 related changes * update deps * fix test * fix: rollback nsfwjs to 4.2.0 * fix: rollback sharp to 0.33 * update deps * fix: rollback sharp-read-bmp to 1.2.0 * fix: rollback nsfwjs to 4.2.0 * recreate lockfile * update deps * fix: rollback sharp-read-bmp to 1.2.0 * fix: rollback jsdom, parse5 * fix: rollback jsdom types * fix [ci skip] * run pnpm dedupe * update deps * run pnpm dedupe [ci skip] * Update Changelog [ci skip] --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Co-authored-by: あわわわとーにゅ <17376330+u1-liquid@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* chore(backend): remove jsdom completely (#16893)syuilo2025-11-294-12/+12
| | | | | | | | | | | * wip * Update utils.ts * Update fetch-resource.ts * Update exports.ts * Update oauth.ts
* Revert "chore(backend): remove jsdom"syuilo2025-11-291-3/+3
| | | | This reverts commit 2effd9da6ea6bd24b4a8342ded6d5b05b69a5ed4.
* chore(backend): remove jsdomsyuilo2025-11-291-3/+3
|
* perf(backend): ↵syuilo2025-11-292-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jsdom、happy-domをやめて軽量な実装にし、メモリ削減・高速化 (#16885) * wip * Update packages/backend/src/server/api/endpoints/i/update.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/backend/src/core/FetchInstanceMetadataService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * remove some packages * コミット漏れ * clean up * fix * Update MfmService.ts * fix * fix * Update MfmService.ts * wip * rename * Update packages/backend/src/core/MfmService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/backend/src/core/MfmService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/backend/src/core/MfmService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/backend/src/core/MfmService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/backend/src/core/activitypub/ApRendererService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/backend/src/core/MfmService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/backend/src/core/MfmService.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update MfmService.ts * Update CHANGELOG.md --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Revert "fix(backend): `clips/my-favorites` ↵かっこかり2025-11-271-8/+7
| | | | | | | | | APIをページネーションに対応させる (#16835)" (#16874) * Revert "fix(backend): `clips/my-favorites` APIをページネーションに対応させる (#16835)" This reverts commit 70fa621e22b90b1f649eb3c1d291cec1ed57b0ac. * fix
* chore(dev): use postgresql 18 (#16850)syuilo2025-11-251-1/+1
|
* fix(backend): `clips/my-favorites` ↵かっこかり2025-11-231-7/+8
| | | | | | | | | | | APIをページネーションに対応させる (#16835) * fix(backend): `clips/my-favorites` APIをページネーションに対応させる * fix * fix test * fix
* RoleService.testがPostgreSQLのdeadlockでrandom failする問題を修正 ↵claustra012025-11-121-2/+6
| | | | | | | (#16784) * fix: 並列deleteによるpostgresqlのdeadlock * chore: update comment
* chore: RoleServiceのunit-test追加 (#16777)おさむのひと2025-11-101-18/+237
|
* feat: チャンネルミュートの実装 (#14105)おさむのひと2025-11-077-53/+2040
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add channel_muting table and entities * add channel_muting services * タイムライン取得処理への組み込み * misskey-jsの型とインターフェース生成 * Channelスキーマにミュート情報を追加 * フロントエンドの実装 * 条件が逆だったのを修正 * 期限切れミュートを掃除する機能を実装 * TLの抽出条件調節 * 名前の変更と変更不要の差分をロールバック * 修正漏れ * isChannelRelatedの条件に誤りがあった * [wip] テスト追加 * テストの追加と検出した不備の修正 * fix test * fix CHANGELOG.md * 通常はFTTにしておく * 実装忘れ対応 * fix merge * fix merge * add channel tl test * fix CHANGELOG.md * remove unused import * fix lint * fix test * fix favorite -> favorited * exclude -> include * fix CHANGELOG.md * fix CHANGELOG.md * maintenance * fix CHANGELOG.md * fix * fix ci * regenerate * fix * Revert "fix" This reverts commit 699d50c6ec798777d8e9667cb5d45a26b06bfc93. * fixed --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* Node.js 24 support (#16723)syuilo2025-10-301-2/+6
| | | | | | | | | | | | | * Revert "テストが動かないためnodejs 24サポートを取り消し" This reverts commit a892bbcce511fb0dff943ab23090e1d347594c94. * fix jest.js * ファイルの添付方法を変更 --------- Co-authored-by: samunohito <46447427+samunohito@users.noreply.github.com>
* fix(backend): fix test (#16441)かっこかり2025-08-221-6/+3
| | | | | | | * fix(backend): fix test * fix * fix
* fix: Remote Note Cleaning will delete notes embedded in a page (#16408)anatawa122025-08-153-0/+20
| | | | | | | | | | | | | | | | | | | | | * feat: preserve number of pages referencing the note * chore: delete pages on account delete * fix: notes on the pages are removed by CleanRemoteNotes * test: add the simplest test for page embedded notes * fix: section block is not considered * fix: section block is not considered in migration * chore: remove comments from columns * revert unnecessary change * add pageCount to webhook test * fix type error on backend
* enhance: performance for CleanRemoteNotesProcessorService (#16404)饺子w (Yumechi)2025-08-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * enhance: performance for CleanRemoteNotesProcessorService Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * suggestions Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * docs Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * change initial limit to 100 Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * robustness for transient race conditions Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * handle cursors in postgres Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * robustness: transient errors and timeout handling Signed-off-by: eternal-flame-AD <yume@yumechi.jp> * use '0' as initial cursor Signed-off-by: eternal-flame-AD <yume@yumechi.jp> --------- Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
* fix testsyuilo2025-08-111-4/+6
|
* fix(backend): Fix and create unit test of CleanRemoteNotesProcessorService ↵tamaina2025-08-081-0/+631
| | | | | | | | | | | | | | | | | | | | | (#16368) * wip * test(backend): CleanRemoteNotesProcessorService (basic) * test(backend): CleanRemoteNotesProcessorService (advanced) * :v: * a * split initiator query * no order by * ??? * old → older
* fix e2esyuilo2025-08-024-2/+6
|
* ノートの脱CASCADE削除 (#16332)syuilo2025-07-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * Update CHANGELOG.md * Update QueryService.ts * Update QueryService.ts * wip * Update MkNoteDetailed.vue * Update NoteEntityService.ts * wip * Update antennas.ts * Update create.ts * Update NoteEntityService.ts * wip * Update CHANGELOG.md * Update NoteEntityService.ts * Update NoteCreateService.ts * Update note.test.ts * Update note.test.ts * Update ClientServerService.ts * Update ClientServerService.ts * add error handling * Update NoteDeleteService.ts * Update CHANGELOG.md * Update entities.ts * Update entities.ts * Update misskey-js.api.md
* fix(test): Fix name of a test in e2e/timelines.ts (#16334)tamaina2025-07-311-1/+1
|
* test(backend): e2e/timelines.ts: 非FTT時のテストを追加, ↵tamaina2025-07-301-1051/+1427
| | | | | | | | | | | | | | | | | | | | | 凍結のテストを追加, これにかかる幾つかのバグ修正 (#16284) * test(backend): 非FTT時のテストを追加 * clean up * skip test about reply * Fix #16289 * clean up * cherry pick * add renote test * Fix https://github.com/misskey-dev/misskey/issues/16293 * remove debug log
* refactorsyuilo2025-07-041-35/+35
|
* fix(test): Play検索機能でBackend Unit Testが壊れているsyuilo2025-07-041-0/+2
|
* fix(test): Play検索機能でBackend Unit Testが壊れているsyuilo2025-07-041-1/+4
| | | | Fix #16248
* Fix: ↵anatawa122025-05-291-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | | ミュート対象ユーザーが引用されているノートがRNされたときにミュートを貫通してしまう問題 (#16009) * chore: change 3rd parameter of generateMutedUserQueryForNotes to options * chore: allow specifying note column for note/block query * chore: check for mute / block for renote of note with DB query * chore: check for mute / block for renote of note with FTT * refactor: ミュート・ブロックのためのクエリ呼び出しを一つの関数にまとめる * docs(changelog): ミュート対象ユーザーが引用されているノートがRNされたときにミュートを貫通してしまう問題を修正 * fix missing default parameter * Update is-user-related.ts * test: add tests for mutes --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix testssyuilo2025-05-294-19/+74
| | | | | | | | | | | | | * test * Update activitypub.ts * Update activitypub.ts * Update create.ts * Update create.ts * Update endpoints.ts
* fix(backend): follow-up of #16105 (#16109)かっこかり2025-05-272-2/+2
|
* fix(backend): typeormのbreaking changeに対応 (#16105)かっこかり2025-05-2711-27/+27
| | | | | * fix(backend): typeormのbreaking changeに対応 * attempt to fix test
* fix(backend): enumerate achievement types in some response schema (#15953)zyoshoka2025-05-061-1/+1
| | | | | * fix(backend): enumerate achievement types in some response schema * refactor: use `ref`
* refactor: ファイルアップロード時のテストを追加 (#15928)おさむのひと2025-05-041-0/+164
| | | | | * refactor: ファイルアップロード時のテストを追加 * なぜかsemverが消えてた
* Revert "fix: ↵おさむのひと2025-05-032-110/+2
| | | | | | | | | 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896)" (#15927) * Revert "fix: 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896)" This reverts commit 7e8cc4d7c0a86ad0bf71a727fb16132e8bc180a8. * fix CHANGELOG.md
* Exclude suspended users note from most timelines (#15775)anatawa122025-05-011-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: exclude notes by suspended user from FTT timeline endpoint * feat: exclude notes by suspended user from DB based timelines * chore: fix types * chore: fix types * chore: fix non-reply / renote * chore: fix non-reply / renote * test: update test * docs(changelog): 凍結されたユーザのノートが各種タイムラインで表示されないように * Exclude suspended users note from featured * fix: join user * Update CHANGELOG.md --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix: ↵おさむのひと2025-04-292-2/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 添付ファイルのあるリクエストを受けたときの初動を改善 (#15896) * wip * ロールポリシーの値も参照するように * エンドポイントのテストを追加 * fix review * add spdx * fix CHANGELOG.md * fix test * regenerate * add log * Revert "add log" This reverts commit 4b2bf59a609b85ca0bfcc9b71438db782f11983d. * add log * fix * Revert "add log" This reverts commit c5a73d57da0f30ec5215e08a8b4d78785cce48d1.
* enhance(backend): ↵おさむのひと2025-04-131-11/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | フォローしているユーザーならフォロワー限定投稿のノートでもアンテナで検知できるように (#15264) * フォローしているユーザーなら鍵ノートでもアンテナにひっかかるように Co-authored-by: kozakura913 <98575220+kozakura913@users.noreply.github.com> Co-authored-by: mai <74494945+chan-mai@users.noreply.github.com> * Eliminate build errors by resolving conflicts * 低コストな判定文を前にもってきて重い判定文に入る可能性を少しでも下げる * fix CHANGELOG.md * fix CHANGELOG.md * fix diff * removed comment * fix CHANGELOG.md --------- Co-authored-by: kozakura913 <98575220+kozakura913@users.noreply.github.com> Co-authored-by: mai <74494945+chan-mai@users.noreply.github.com> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix: resolve with non-lowercased acct is broken (#15813)anatawa122025-04-133-5/+5
| | | | | * fix: resolve with non-lowercased acct is broken * docs(changelog): Fix: 大文字を含むユーザの URL で紹介された場合に 404 エラーを返す問題
* hideNotesInSensitiveChannel -> excludeNotesInSensitiveChannelsyuilo2025-04-081-4/+4
|
* feat: ↵Nanashi.2025-04-021-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | アンテナでセンシティブなチャンネルからのノートを除外できるように (#15346) * feat(db): マイグレーションを追加 * feat(backend): カラムの定義を追加 * wip * feat: フラグを設定出来るように * feat: /notesエンドポイントを対応 * feat: websocketを対応 * test: テストを追加 * docs: CHANGELOGを更新 * docs: CHANGELOGの追加場所を修正 * chore: api.jsonを更新 * docs(CHANGELOG): General欄に移動 * docs: フォーマットを揃える * chore: クエリを削除 * revert: 英訳を消す * chore: note.channelを追加するところを変える * docs: CHANGELOGを更新する * docs(CHANGELOG): 2025.3.2に移動 * chore: changelogを下に移動 * ci: CI再実行用の空コミット --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* fix testssyuilo2025-03-291-0/+2
|
* fix e2e testsyuilo2025-03-271-1/+1
|
* test fixessyuilo2025-03-271-10/+10
|