Mak-3/smart-icons-kit

Add Initial Test Suite (Synonym Reuse & Duplication Detection)

开放

#1 创建于 2025年10月1日

 (7 条评论) (0 个反应) (2 位负责人)TypeScript (3 个派生)auto 404
enhancementgood first issuehacktoberfesttests

仓库指标

星标
 (3 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Currently, Smart Icons Kit has no automated tests. To improve reliability and make future contributions safer, we need to set up a testing framework and add the first set of tests.


Tasks

  • ⚙️ Set up a testing framework (Jest recommended).
  • 🧪 Add a test to check if a synonym is already used by another icon.
  • 🧪 Add a test to detect duplicate icon definitions.

Why This Matters

Tests are essential to ensure the library behaves as expected. Adding even basic coverage will help catch regressions early and make it easier for new contributors to contribute confidently.


🏷️ Hacktoberfest Note

This is a good first issue for Hacktoberfest contributors 🎉

If you’re new to open source, this issue will help you get started by:

  • Learning how to set up a test framework in a JS/TS project.
  • Writing meaningful tests for a real-world package.
  • Contributing to an actively maintained open-source project.

贡献者指南