lucavallin/verto

Add Testing Framework (Jest & Cypress) for Frontend

开放

#236 创建于 2023年10月9日

 (1 条评论) (3 个反应) (0 位负责人)TypeScript (95 个派生)auto 404
help wantedtestingtypescript

仓库指标

星标
 (426 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

We currently lack a testing framework for the First Issue application. The absence of unit tests makes it challenging to ensure that new changes do not break existing functionality. To address this, we should introduce and configure Jest and/or Cypress, both popular JavaScript testing frameworks.

  1. Integrate the testing framework for the frontend components.
  2. Write unit tests to cover various functionalities of the frontend.
  3. Introduce mocking for external dependencies to isolate components during testing.
  4. Set up scripts the test to run tests automatically during development (e.g., with watch mode).
  5. Configure Jest to generate coverage reports to monitor test coverage.

Follow best practices while implementing this. Not all of the above points may be applicable but its just guidelines.

贡献者指南