Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

"final" directory outdated

オープン
#178 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
graphql, node.js, typescript
領域
api, backend, testing

調査の方向性

.env.example を現在の APOLLO_ 環境変数と比較し、その後 src/__tests__/resolvers.mutation.jssrc/__tests__/integration.js で参照されているテストを実行します。環境の例が現在の変数を反映し、ログインテストが報告された失敗なしに期待されるトークンを返せば完了です。

索引モデルが issue の本文から書いたものです。

説明

.env.example doesn't seem to match the latest APOLLO_ environment variables, and I'm getting some failing tests:

`(node:214719) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
 FAIL  src/__tests__/resolvers.mutation.js
  ● [Mutation.login] › returns base64 encoded email as user token if successful

    expect(received).toEqual(expected) // deep equality

    Expected: "YUBhLmE="
    Received: undefined

      103 |     // check the resolver response
      104 |     const res = await resolvers.Mutation.login(null, args, mockContext);
    > 105 |     expect(res.token).toEqual('YUBhLmE=');
          |                       ^
      106 | 
      107 |     // check if the dataSource was called with correct args
      108 |     expect(findOrCreateUser).toBeCalledWith(args);

      at Object.toEqual (src/__tests__/resolvers.mutation.js:105:23)

(node:214721) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
 FAIL  src/__tests__/integration.js
  ● Console

    console.warn node_modules/apollo-server/node_modules/apollo-engine-reporting/dist/agent.js:57
      [deprecated] The `schemaTag` property within `engine` configuration has been renamed to `graphVariant`.

  ● Mutations › returns login token

    TypeError: Cannot read property 'login' of undefined

      125 |       variables: {email: 'a@a.a'},
      126 |     });
    > 127 |     expect(res.data.login.token).toEqual('YUBhLmE=');
          |                     ^
      128 |   });
      129 | 
      130 |   it('books trips', async () => {

      at Object.login (src/__tests__/integration.js:127:21)
主要言語
TypeScript
スター
1.2k
フォーク
808
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apollographql/fullstack-tutorial のほかの issue

apollographql/fullstack-tutorial の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。