test: unit tests are placeholders and CI runs on Node 18

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cypress, express, javascript, mongodb, node.js
領域
backend, ci-cd, testing

調査の方向性

Start by reading __tests__/server.test.js and the “Server API tests” workflow to see the existing test setup and Node version. The issue proposes exercising the exported app with Supertest and mongodb-memory-server across auth, enrolment, payments and reviews, then updating CI to Node 22. Done means replacing placeholder checks with the listed integration cases and updating the workflow; branch protection is also requested.

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

説明

enhancement

__tests__/server.test.js checks things like 2 + 2 === 4 and string operations, so the "Server API tests" workflow passes without exercising any controller or route. Only trie.test.js tests real code. The workflow also runs on Node 18.x, which is end-of-life.

Suggested fix

  • Add integration tests with Supertest against the exported app and an in-memory MongoDB (mongodb-memory-server) for auth, enrolment, payments and reviews: the happy path plus 401/403, not-owner, invalid input, missing ids and duplicates.
  • Run the workflow on Node 22 LTS and make it a required check for main.

Found while reviewing StudyNotion with Claude Code.

主要言語
JavaScript
スター
23
フォーク
8
平均マージ
11分
マージ済み PR(30日)
4

環境構築

はじめの一歩

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

khemssharma/StudyNotion のほかの issue

khemssharma/StudyNotion の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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