> misskey@1.0.0 test > cross-env NODE_ENV=test gulp test [02:14:05] Requiring external module ts-node/register [02:14:06] Using gulpfile /misskey/gulpfile.ts [02:14:06] Starting 'test'... [02:14:06] Starting 'lint'... [02:14:07] Finished 'lint' after 1.09 s [02:14:07] Starting 'mocha'...   API  signup  1) 不正なユーザー名でアカウントが作成できない  2) 空のパスワードでアカウントが作成できない  3) 正しくアカウントが作成できる  4) 同じユーザー名のアカウントは作成できない  signin  5) 間違ったパスワードでサインインできない  6) クエリをインジェクションできない  7) 正しい情報でサインインできる  i/update  8) アカウント設定を更新できる  9) 名前を空白にできない  10) 誕生日の設定を削除できる  11) 不正な誕生日の形式で怒られる  users/show  12) ユーザーが取得できる  13) ユーザーが存在しなかったら怒る  14) 間違ったIDで怒られる  posts/create  15) 投稿できる  16) ファイルを添付できる  17) 他人のファイルは添付できない  18) 存在しないファイルは添付できない  19) 不正なファイルIDで怒られる  20) 返信できる  21) repostできる  22) 引用repostできる  23) 文字数ぎりぎりで怒られない  24) 文字数オーバーで怒られる  25) 存在しないリプライ先で怒られる  26) 存在しないrepost対象で怒られる  27) 不正なリプライ先IDで怒られる  28) 不正なrepost対象IDで怒られる  29) 投票を添付できる  30) 投票の選択肢が無くて怒られる  31) 投票の選択肢が無くて怒られる (空の配列)  32) 投票の選択肢が1つで怒られる  posts/show  33) 投稿が取得できる  34) 投稿が存在しなかったら怒る  35) 間違ったIDで怒られる  posts/reactions/create  36) リアクションできる  37) 自分の投稿にはリアクションできない  38) 二重にリアクションできない  39) 存在しない投稿にはリアクションできない  40) 空のパラメータで怒られる  41) 間違ったIDで怒られる  posts/reactions/delete  42) リアクションをキャンセルできる  43) リアクションしていない投稿はリアクションをキャンセルできない  44) 存在しない投稿はリアクションをキャンセルできない  45) 空のパラメータで怒られる  46) 間違ったIDで怒られる  following/create  47) フォローできる  48) 既にフォローしている場合は怒る  49) 存在しないユーザーはフォローできない  50) 自分自身はフォローできない  51) 空のパラメータで怒られる  52) 間違ったIDで怒られる  following/delete  53) フォロー解除できる  54) フォローしていない場合は怒る  55) 存在しないユーザーはフォロー解除できない  56) 自分自身はフォロー解除できない  57) 空のパラメータで怒られる  58) 間違ったIDで怒られる  drive  59) ドライブ情報を取得できる  drive/files/create  60) ファイルを作成できる  61) ファイル無しで怒られる  drive/files/update  62) 名前を更新できる  63) 他人のファイルは更新できない  64) 親フォルダを更新できる  65) 親フォルダを無しにできる  66) 他人のフォルダには入れられない  67) 存在しないフォルダで怒られる  68) 不正なフォルダIDで怒られる  69) ファイルが存在しなかったら怒る  70) 間違ったIDで怒られる  drive/folders/create  71) フォルダを作成できる  drive/folders/update  72) 名前を更新できる  73) 他人のフォルダを更新できない  74) 親フォルダを更新できる  75) 親フォルダを無しに更新できる  76) 他人のフォルダを親フォルダに設定できない  77) フォルダが循環するような構造にできない  78) フォルダが循環するような構造にできない(再帰的)  79) 存在しない親フォルダを設定できない  80) 不正な親フォルダIDで怒られる  81) 存在しないフォルダを更新できない  82) 不正なフォルダIDで怒られる  messaging/messages/create  83) メッセージを送信できる  84) 自分自身にはメッセージを送信できない  85) 存在しないユーザーにはメッセージを送信できない  86) 不正なユーザーIDで怒られる  87) テキストが無くて怒られる  88) 文字数オーバーで怒られる  auth/session/generate  89) 認証セッションを作成できる  90) appSecret 無しで怒られる  91) 誤った appSecret で怒られる  Node.js 22 compatibility  ✓ generates and derives PKCS#1 RSA keys (48ms)  ✓ reports finite non-negative disk usage values  Text  ✓ can be analyzed  ✓ can be inverted  elements  ✓ bold  ✓ mention  ✓ remote mention  ✓ hashtag  ✓ url  ✓ link  ✓ emoji  ✓ block code  ✓ inline code  syntax highlighting  ✓ comment  ✓ regexp  ✓ slash   16 passing (3s)  91 failing  1) API signup 不正なユーザー名でアカウントが作成できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:64:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   2) API signup 空のパスワードでアカウントが作成できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:72:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   3) API signup 正しくアカウントが作成できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:81:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   4) API signup 同じユーザー名のアカウントは作成できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:92:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   5) API signin 間違ったパスワードでサインインできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:103:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   6) API signin クエリをインジェクションできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:114:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   7) API signin 正しい情報でサインインできる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:123:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   8) API i/update アカウント設定を更新できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:146:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   9) API i/update 名前を空白にできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:160:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   10) API i/update 誕生日の設定を削除できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:170:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   11) API i/update 不正な誕生日の形式で怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:181:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   12) API users/show ユーザーが取得できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:191:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   13) API users/show ユーザーが存在しなかったら怒る:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:200:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   14) API users/show 間違ったIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:207:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   15) API posts/create 投稿できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:218:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   16) API posts/create ファイルを添付できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:232:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   17) API posts/create 他人のファイルは添付できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:247:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   18) API posts/create 存在しないファイルは添付できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:255:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   19) API posts/create 不正なファイルIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:263:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   20) API posts/create 返信できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:279:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   21) API posts/create repostできる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:300:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   22) API posts/create 引用repostできる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:321:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   23) API posts/create 文字数ぎりぎりで怒られない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:336:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   24) API posts/create 文字数オーバーで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:345:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   25) API posts/create 存在しないリプライ先で怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:355:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   26) API posts/create 存在しないrepost対象で怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:364:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   27) API posts/create 不正なリプライ先IDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:374:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   28) API posts/create 不正なrepost対象IDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:383:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   29) API posts/create 投票を添付できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:394:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   30) API posts/create 投票の選択肢が無くて怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:405:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   31) API posts/create 投票の選択肢が無くて怒られる (空の配列):  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:415:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   32) API posts/create 投票の選択肢が1つで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:425:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   33) API posts/show 投稿が取得できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:439:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   34) API posts/show 投稿が存在しなかったら怒る:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:448:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   35) API posts/show 間違ったIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:455:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   36) API posts/reactions/create リアクションできる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:472:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   37) API posts/reactions/create 自分の投稿にはリアクションできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:486:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   38) API posts/reactions/create 二重にリアクションできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:507:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   39) API posts/reactions/create 存在しない投稿にはリアクションできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:516:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   40) API posts/reactions/create 空のパラメータで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:522:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   41) API posts/reactions/create 間違ったIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:531:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   42) API posts/reactions/delete リアクションをキャンセルできる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:553:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   43) API posts/reactions/delete リアクションしていない投稿はリアクションをキャンセルできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:567:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   44) API posts/reactions/delete 存在しない投稿はリアクションをキャンセルできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:575:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   45) API posts/reactions/delete 空のパラメータで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:581:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   46) API posts/reactions/delete 間違ったIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:589:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   47) API following/create フォローできる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:600:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   48) API following/create 既にフォローしている場合は怒る:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:613:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   49) API following/create 存在しないユーザーはフォローできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:621:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   50) API following/create 自分自身はフォローできない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:629:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   51) API following/create 空のパラメータで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:635:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   52) API following/create 間違ったIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:643:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   53) API following/delete フォロー解除できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:658:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   54) API following/delete フォローしていない場合は怒る:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:667:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   55) API following/delete 存在しないユーザーはフォロー解除できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:675:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   56) API following/delete 自分自身はフォロー解除できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:683:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   57) API following/delete 空のパラメータで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:689:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   58) API following/delete 間違ったIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:697:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   59) API drive ドライブ情報を取得できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:717:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   60) API drive/files/create ファイルを作成できる:  Error: .field(name, val) val can not be empty at Test.RequestBase.field (node_modules/superagent/lib/request-base.js:401:11) at /misskey/test/api.ts:728:6 at processTicksAndRejections (node:internal/process/task_queues:103:5)   61) API drive/files/create ファイル無しで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:738:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   62) API drive/files/update 名前を更新できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:753:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   63) API drive/files/update 他人のファイルは更新できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:768:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   64) API drive/files/update 親フォルダを更新できる:  Error: object [{"_bsontype":"ObjectID","id":{"0":106,"1":133,"2":17,"3":116,"4":24,"5":66,"6":204,"7":0,"8":54,"9":252,"10":251,"11":67}}] is not a valid ObjectId at serializeObjectId (node_modules/bson/lib/bson/parser/serializer.js:287:11) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:931:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:727:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:937:17) at BSON.serialize (node_modules/bson/lib/bson/bson.js:63:28) at Query.toBin (node_modules/monk/node_modules/mongodb-core/lib/connection/commands.js:140:25) at Pool.write (node_modules/monk/node_modules/mongodb-core/lib/connection/pool.js:986:23) at executeWrite (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:73:10) at WireProtocol.insert (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:84:3) at Server.insert (node_modules/monk/node_modules/mongodb-core/lib/topologies/server.js:564:35) at Server.insert (node_modules/monk/node_modules/mongodb/lib/server.js:390:17) at executeCommands (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:455:23) at OrderedBulkOperation.execute (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:515:12) at bulkWrite (node_modules/monk/node_modules/mongodb/lib/collection.js:663:8) at /misskey/node_modules/monk/node_modules/mongodb/lib/collection.js:540:5 at new Promise () at Collection.insertMany (node_modules/monk/node_modules/mongodb/lib/collection.js:539:10) at Collection.insert (node_modules/monk/node_modules/mongodb/lib/collection.js:835:15) at insert (node_modules/monk/lib/collection.js:327:21) at /misskey/node_modules/monk-middleware-wait-for-connection/index.js:8:16 at processTicksAndRejections (node:internal/process/task_queues:103:5) at /misskey/test/api.ts:776:19   65) API drive/files/update 親フォルダを無しにできる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:798:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   66) API drive/files/update 他人のフォルダには入れられない:  Error: object [{"_bsontype":"ObjectID","id":{"0":106,"1":133,"2":17,"3":116,"4":24,"5":66,"6":204,"7":0,"8":54,"9":252,"10":251,"11":73}}] is not a valid ObjectId at serializeObjectId (node_modules/bson/lib/bson/parser/serializer.js:287:11) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:931:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:727:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:937:17) at BSON.serialize (node_modules/bson/lib/bson/bson.js:63:28) at Query.toBin (node_modules/monk/node_modules/mongodb-core/lib/connection/commands.js:140:25) at Pool.write (node_modules/monk/node_modules/mongodb-core/lib/connection/pool.js:986:23) at executeWrite (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:73:10) at WireProtocol.insert (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:84:3) at Server.insert (node_modules/monk/node_modules/mongodb-core/lib/topologies/server.js:564:35) at Server.insert (node_modules/monk/node_modules/mongodb/lib/server.js:390:17) at executeCommands (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:455:23) at OrderedBulkOperation.execute (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:515:12) at bulkWrite (node_modules/monk/node_modules/mongodb/lib/collection.js:663:8) at /misskey/node_modules/monk/node_modules/mongodb/lib/collection.js:540:5 at new Promise () at Collection.insertMany (node_modules/monk/node_modules/mongodb/lib/collection.js:539:10) at Collection.insert (node_modules/monk/node_modules/mongodb/lib/collection.js:835:15) at insert (node_modules/monk/lib/collection.js:327:21) at /misskey/node_modules/monk-middleware-wait-for-connection/index.js:8:16 at processTicksAndRejections (node:internal/process/task_queues:103:5) at /misskey/test/api.ts:809:19   67) API drive/files/update 存在しないフォルダで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:828:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   68) API drive/files/update 不正なフォルダIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:840:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   69) API drive/files/update ファイルが存在しなかったら怒る:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:849:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   70) API drive/files/update 間違ったIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:858:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   71) API drive/folders/create フォルダを作成できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:868:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   72) API drive/folders/update 名前を更新できる:  Error: object [{"_bsontype":"ObjectID","id":{"0":106,"1":133,"2":17,"3":116,"4":24,"5":66,"6":204,"7":0,"8":54,"9":252,"10":251,"11":83}}] is not a valid ObjectId at serializeObjectId (node_modules/bson/lib/bson/parser/serializer.js:287:11) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:931:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:727:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:937:17) at BSON.serialize (node_modules/bson/lib/bson/bson.js:63:28) at Query.toBin (node_modules/monk/node_modules/mongodb-core/lib/connection/commands.js:140:25) at Pool.write (node_modules/monk/node_modules/mongodb-core/lib/connection/pool.js:986:23) at executeWrite (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:73:10) at WireProtocol.insert (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:84:3) at Server.insert (node_modules/monk/node_modules/mongodb-core/lib/topologies/server.js:564:35) at Server.insert (node_modules/monk/node_modules/mongodb/lib/server.js:390:17) at executeCommands (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:455:23) at OrderedBulkOperation.execute (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:515:12) at bulkWrite (node_modules/monk/node_modules/mongodb/lib/collection.js:663:8) at /misskey/node_modules/monk/node_modules/mongodb/lib/collection.js:540:5 at new Promise () at Collection.insertMany (node_modules/monk/node_modules/mongodb/lib/collection.js:539:10) at Collection.insert (node_modules/monk/node_modules/mongodb/lib/collection.js:835:15) at insert (node_modules/monk/lib/collection.js:327:21) at /misskey/node_modules/monk-middleware-wait-for-connection/index.js:8:16 at processTicksAndRejections (node:internal/process/task_queues:103:5) at /misskey/test/api.ts:877:19   73) API drive/folders/update 他人のフォルダを更新できない:  Error: object [{"_bsontype":"ObjectID","id":{"0":106,"1":133,"2":17,"3":116,"4":24,"5":66,"6":204,"7":0,"8":54,"9":252,"10":251,"11":86}}] is not a valid ObjectId at serializeObjectId (node_modules/bson/lib/bson/parser/serializer.js:287:11) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:931:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:727:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:937:17) at BSON.serialize (node_modules/bson/lib/bson/bson.js:63:28) at Query.toBin (node_modules/monk/node_modules/mongodb-core/lib/connection/commands.js:140:25) at Pool.write (node_modules/monk/node_modules/mongodb-core/lib/connection/pool.js:986:23) at executeWrite (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:73:10) at WireProtocol.insert (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:84:3) at Server.insert (node_modules/monk/node_modules/mongodb-core/lib/topologies/server.js:564:35) at Server.insert (node_modules/monk/node_modules/mongodb/lib/server.js:390:17) at executeCommands (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:455:23) at OrderedBulkOperation.execute (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:515:12) at bulkWrite (node_modules/monk/node_modules/mongodb/lib/collection.js:663:8) at /misskey/node_modules/monk/node_modules/mongodb/lib/collection.js:540:5 at new Promise () at Collection.insertMany (node_modules/monk/node_modules/mongodb/lib/collection.js:539:10) at Collection.insert (node_modules/monk/node_modules/mongodb/lib/collection.js:835:15) at insert (node_modules/monk/lib/collection.js:327:21) at /misskey/node_modules/monk-middleware-wait-for-connection/index.js:8:16 at processTicksAndRejections (node:internal/process/task_queues:103:5) at /misskey/test/api.ts:892:19   74) API drive/folders/update 親フォルダを更新できる:  Error: object [{"_bsontype":"ObjectID","id":{"0":106,"1":133,"2":17,"3":116,"4":24,"5":66,"6":204,"7":0,"8":54,"9":252,"10":251,"11":88}}] is not a valid ObjectId at serializeObjectId (node_modules/bson/lib/bson/parser/serializer.js:287:11) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:931:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:727:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:937:17) at BSON.serialize (node_modules/bson/lib/bson/bson.js:63:28) at Query.toBin (node_modules/monk/node_modules/mongodb-core/lib/connection/commands.js:140:25) at Pool.write (node_modules/monk/node_modules/mongodb-core/lib/connection/pool.js:986:23) at executeWrite (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:73:10) at WireProtocol.insert (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:84:3) at Server.insert (node_modules/monk/node_modules/mongodb-core/lib/topologies/server.js:564:35) at Server.insert (node_modules/monk/node_modules/mongodb/lib/server.js:390:17) at executeCommands (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:455:23) at OrderedBulkOperation.execute (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:515:12) at bulkWrite (node_modules/monk/node_modules/mongodb/lib/collection.js:663:8) at /misskey/node_modules/monk/node_modules/mongodb/lib/collection.js:540:5 at new Promise () at Collection.insertMany (node_modules/monk/node_modules/mongodb/lib/collection.js:539:10) at Collection.insert (node_modules/monk/node_modules/mongodb/lib/collection.js:835:15) at insert (node_modules/monk/lib/collection.js:327:21) at /misskey/node_modules/monk-middleware-wait-for-connection/index.js:8:16 at processTicksAndRejections (node:internal/process/task_queues:103:5) at /misskey/test/api.ts:904:19   75) API drive/folders/update 親フォルダを無しに更新できる:  Error: object [{"_bsontype":"ObjectID","id":{"0":106,"1":133,"2":17,"3":116,"4":24,"5":66,"6":204,"7":0,"8":54,"9":252,"10":251,"11":90}}] is not a valid ObjectId at serializeObjectId (node_modules/bson/lib/bson/parser/serializer.js:287:11) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:931:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:727:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:937:17) at BSON.serialize (node_modules/bson/lib/bson/bson.js:63:28) at Query.toBin (node_modules/monk/node_modules/mongodb-core/lib/connection/commands.js:140:25) at Pool.write (node_modules/monk/node_modules/mongodb-core/lib/connection/pool.js:986:23) at executeWrite (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:73:10) at WireProtocol.insert (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:84:3) at Server.insert (node_modules/monk/node_modules/mongodb-core/lib/topologies/server.js:564:35) at Server.insert (node_modules/monk/node_modules/mongodb/lib/server.js:390:17) at executeCommands (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:455:23) at OrderedBulkOperation.execute (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:515:12) at bulkWrite (node_modules/monk/node_modules/mongodb/lib/collection.js:663:8) at /misskey/node_modules/monk/node_modules/mongodb/lib/collection.js:540:5 at new Promise () at Collection.insertMany (node_modules/monk/node_modules/mongodb/lib/collection.js:539:10) at Collection.insert (node_modules/monk/node_modules/mongodb/lib/collection.js:835:15) at insert (node_modules/monk/lib/collection.js:327:21) at /misskey/node_modules/monk-middleware-wait-for-connection/index.js:8:16 at processTicksAndRejections (node:internal/process/task_queues:103:5) at /misskey/test/api.ts:921:19   76) API drive/folders/update 他人のフォルダを親フォルダに設定できない:  Error: object [{"_bsontype":"ObjectID","id":{"0":106,"1":133,"2":17,"3":116,"4":24,"5":66,"6":204,"7":0,"8":54,"9":252,"10":251,"11":92}}] is not a valid ObjectId at serializeObjectId (node_modules/bson/lib/bson/parser/serializer.js:287:11) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:931:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:727:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:937:17) at BSON.serialize (node_modules/bson/lib/bson/bson.js:63:28) at Query.toBin (node_modules/monk/node_modules/mongodb-core/lib/connection/commands.js:140:25) at Pool.write (node_modules/monk/node_modules/mongodb-core/lib/connection/pool.js:986:23) at executeWrite (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:73:10) at WireProtocol.insert (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:84:3) at Server.insert (node_modules/monk/node_modules/mongodb-core/lib/topologies/server.js:564:35) at Server.insert (node_modules/monk/node_modules/mongodb/lib/server.js:390:17) at executeCommands (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:455:23) at OrderedBulkOperation.execute (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:515:12) at bulkWrite (node_modules/monk/node_modules/mongodb/lib/collection.js:663:8) at /misskey/node_modules/monk/node_modules/mongodb/lib/collection.js:540:5 at new Promise () at Collection.insertMany (node_modules/monk/node_modules/mongodb/lib/collection.js:539:10) at Collection.insert (node_modules/monk/node_modules/mongodb/lib/collection.js:835:15) at insert (node_modules/monk/lib/collection.js:327:21) at /misskey/node_modules/monk-middleware-wait-for-connection/index.js:8:16 at processTicksAndRejections (node:internal/process/task_queues:103:5) at /misskey/test/api.ts:937:19   77) API drive/folders/update フォルダが循環するような構造にできない:  Error: object [{"_bsontype":"ObjectID","id":{"0":106,"1":133,"2":17,"3":116,"4":24,"5":66,"6":204,"7":0,"8":54,"9":252,"10":251,"11":96}}] is not a valid ObjectId at serializeObjectId (node_modules/bson/lib/bson/parser/serializer.js:287:11) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:931:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:727:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:937:17) at BSON.serialize (node_modules/bson/lib/bson/bson.js:63:28) at Query.toBin (node_modules/monk/node_modules/mongodb-core/lib/connection/commands.js:140:25) at Pool.write (node_modules/monk/node_modules/mongodb-core/lib/connection/pool.js:986:23) at executeWrite (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:73:10) at WireProtocol.insert (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:84:3) at Server.insert (node_modules/monk/node_modules/mongodb-core/lib/topologies/server.js:564:35) at Server.insert (node_modules/monk/node_modules/mongodb/lib/server.js:390:17) at executeCommands (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:455:23) at OrderedBulkOperation.execute (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:515:12) at bulkWrite (node_modules/monk/node_modules/mongodb/lib/collection.js:663:8) at /misskey/node_modules/monk/node_modules/mongodb/lib/collection.js:540:5 at new Promise () at Collection.insertMany (node_modules/monk/node_modules/mongodb/lib/collection.js:539:10) at Collection.insert (node_modules/monk/node_modules/mongodb/lib/collection.js:835:15) at insert (node_modules/monk/lib/collection.js:327:21) at /misskey/node_modules/monk-middleware-wait-for-connection/index.js:8:16 at processTicksAndRejections (node:internal/process/task_queues:103:5) at /misskey/test/api.ts:953:25   78) API drive/folders/update フォルダが循環するような構造にできない(再帰的):  Error: object [{"_bsontype":"ObjectID","id":{"0":106,"1":133,"2":17,"3":116,"4":24,"5":66,"6":204,"7":0,"8":54,"9":252,"10":251,"11":99}}] is not a valid ObjectId at serializeObjectId (node_modules/bson/lib/bson/parser/serializer.js:287:11) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:931:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:727:17) at serializeObject (node_modules/bson/lib/bson/parser/serializer.js:347:18) at serializeInto (node_modules/bson/lib/bson/parser/serializer.js:937:17) at BSON.serialize (node_modules/bson/lib/bson/bson.js:63:28) at Query.toBin (node_modules/monk/node_modules/mongodb-core/lib/connection/commands.js:140:25) at Pool.write (node_modules/monk/node_modules/mongodb-core/lib/connection/pool.js:986:23) at executeWrite (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:73:10) at WireProtocol.insert (node_modules/monk/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:84:3) at Server.insert (node_modules/monk/node_modules/mongodb-core/lib/topologies/server.js:564:35) at Server.insert (node_modules/monk/node_modules/mongodb/lib/server.js:390:17) at executeCommands (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:455:23) at OrderedBulkOperation.execute (node_modules/monk/node_modules/mongodb/lib/bulk/ordered.js:515:12) at bulkWrite (node_modules/monk/node_modules/mongodb/lib/collection.js:663:8) at /misskey/node_modules/monk/node_modules/mongodb/lib/collection.js:540:5 at new Promise () at Collection.insertMany (node_modules/monk/node_modules/mongodb/lib/collection.js:539:10) at Collection.insert (node_modules/monk/node_modules/mongodb/lib/collection.js:835:15) at insert (node_modules/monk/lib/collection.js:327:21) at /misskey/node_modules/monk-middleware-wait-for-connection/index.js:8:16 at processTicksAndRejections (node:internal/process/task_queues:103:5) at /misskey/test/api.ts:966:20   79) API drive/folders/update 存在しない親フォルダを設定できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:986:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   80) API drive/folders/update 不正な親フォルダIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:996:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   81) API drive/folders/update 存在しないフォルダを更新できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1004:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   82) API drive/folders/update 不正なフォルダIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1012:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   83) API messaging/messages/create メッセージを送信できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1024:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   84) API messaging/messages/create 自分自身にはメッセージを送信できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1035:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   85) API messaging/messages/create 存在しないユーザーにはメッセージを送信できない:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1044:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   86) API messaging/messages/create 不正なユーザーIDで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1053:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   87) API messaging/messages/create テキストが無くて怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1062:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   88) API messaging/messages/create 文字数オーバーで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1072:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   89) API auth/session/generate 認証セッションを作成できる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1082:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   90) API auth/session/generate appSecret 無しで怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1090:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)   91) API auth/session/generate 誤った appSecret で怒られる:  TypeError: Cannot read properties of undefined (reading 'have') at /misskey/test/api.ts:1097:15 at processTicksAndRejections (node:internal/process/task_queues:103:5)