[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FG87MJDVCCPS7KE0XDZ2AB":3,"skill-same:01M6FG87MJDVCCPS7KE0XDZ2AB":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6FG87MJDVCCPS7KE0XDZ2AB","bun-test-coverage",null,"Use for test coverage with Bun, --coverage flag, lcov reports, thresholds, and CI integration.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fbun-test-coverage\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35],"test","coverage","test coverage","bun","bun test","bun test coverage","integration","ci","use","reports","thresholds","with","2026-11-10 10:12:30",false,"---\nname: bun-test-coverage\ndescription: Use for test coverage with Bun, --coverage flag, lcov reports, thresholds, and CI integration.\nmetadata:\n  version: \"1.0.0\"\nlicense: MIT\n---\n\n# Bun Test Coverage\n\nBun has built-in code coverage reporting without additional dependencies.\n\n## Enabling Coverage\n\n```bash\n# Enable coverage\nbun test --coverage\n\n# With threshold (fail if below)\nbun test --coverage --coverage-threshold 80\n```\n\n## Configuration in bunfig.toml\n\n```toml\n[test]\ncoverage = true\ncoverageThreshold = 0.8  # 80% minimum\ncoverageDir = \".\u002Fcoverage\"\n\n# Patterns to ignore\ncoverageSkipTestFiles = true\n```\n\n## Coverage Output\n\n```\n------------------|---------|---------|-------------------\nFile              | % Funcs | % Lines | Uncovered Line #s\n------------------|---------|---------|-------------------\nAll files         |   85.71 |   89.23 |\n src\u002Findex.ts     |  100.00 |  100.00 |\n src\u002Futils.ts     |   75.00 |   82.35 | 23-25, 41-43\n src\u002Fapi.ts       |   80.00 |   85.00 | 67, 89-92\n------------------|---------|---------|-------------------\n```\n\n## Coverage Reporters\n\n```bash\n# Default console output\nbun test --coverage\n\n# Generate lcov report\nbun test --coverage --coverage-reporter=lcov\n\n# Multiple reporters\nbun test --coverage --coverage-reporter=text --coverage-reporter=lcov\n```\n\n### Available Reporters\n\n| Reporter | Output |\n|----------|--------|\n| `text` | Console table (default) |\n| `lcov` | `coverage\u002Flcov.info` for CI tools |\n| `json` | `coverage\u002Fcoverage.json` |\n\n## Coverage Thresholds\n\nSet minimum coverage requirements:\n\n```bash\n# Fail if coverage \u003C 80%\nbun test --coverage --coverage-threshold 80\n\n# Per-metric thresholds in bunfig.toml\n```\n\n```toml\n[test]\ncoverage = true\ncoverageThreshold = {\n  lines = 80,\n  functions = 75,\n  branches = 70\n}\n```\n\n## Excluding Files\n\n```toml\n[test]\ncoverage = true\n\n# Skip test files from coverage\ncoverageSkipTestFiles = true\n\n# Patterns to exclude\ncoverageIgnore = [\n  \"**\u002F*.test.ts\",\n  \"**\u002Ffixtures\u002F**\",\n  \"**\u002Fmocks\u002F**\"\n]\n```\n\n## CI Integration\n\n### GitHub Actions\n\n```yaml\n- name: Run tests with coverage\n  run: bun test --coverage --coverage-reporter=lcov\n\n- name: Upload coverage to Codecov\n  uses: codecov\u002Fcodecov-action@v5\n  with:\n    files: .\u002Fcoverage\u002Flcov.info\n```\n\n### Output Directory\n\n```bash\n# Custom output directory\nbun test --coverage --coverage-dir=.\u002Freports\u002Fcoverage\n```\n\n## Programmatic Coverage\n\n```typescript\nimport { test, expect } from \"bun:test\";\n\n\u002F\u002F Get coverage data programmatically\nconst coverage = Bun.coverage;\n\n\u002F\u002F Access after tests complete\nprocess.on(\"exit\", () => {\n  console.log(coverage.getCoverageData());\n});\n```\n\n## Common Errors\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| `Coverage threshold not met` | Coverage below threshold | Increase test coverage |\n| `No coverage data` | Files not executed | Check test includes file |\n| `lcov not found` | Missing reporter | Add `--coverage-reporter=lcov` |\n\n## Best Practices\n\n1. **Set realistic thresholds** - Start at 60%, increase gradually\n2. **Exclude generated files** - Mock files, type definitions\n3. **Focus on critical paths** - Business logic over boilerplate\n4. **Run in CI** - Prevent coverage regression\n\n## When to Load References\n\nLoad `references\u002Freporters.md` when:\n- Custom reporter configuration\n- CI\u002FCD integration details\n- Codecov\u002FCoveralls setup\n","# Bun Test Coverage\n\nBun has built-in code coverage reporting without additional dependencies.\n\n## Enabling Coverage\n\n```bash\n# Enable coverage\nbun test --coverage\n\n# With threshold (fail if below)\nbun test --coverage --coverage-threshold 80\n```\n\n## Configuration in bunfig.toml\n\n```toml\n[test]\ncoverage = true\ncoverageThreshold = 0.8  # 80% minimum\ncoverageDir = \".\u002Fcoverage\"\n\n# Patterns to ignore\ncoverageSkipTestFiles = true\n```\n\n## Coverage Output\n\n```\n------------------|---------|---------|-------------------\nFile              | % Funcs | % Lines | Uncovered Line #s\n------------------|---------|---------|-------------------\nAll files         |   85.71 |   89.23 |\n src\u002Findex.ts     |  100.00 |  100.00 |\n src\u002Futils.ts     |   75.00 |   82.35 | 23-25, 41-43\n src\u002Fapi.ts       |   80.00 |   85.00 | 67, 89-92\n------------------|---------|---------|-------------------\n```\n\n## Coverage Reporters\n\n```bash\n# Default console output\nbun test --coverage\n\n# Generate lcov report\nbun test --coverage --coverage-reporter=lcov\n\n# Multiple reporters\nbun test --coverage --coverage-reporter=text --coverage-reporter=lcov\n```\n\n### Available Reporters\n\n| Reporter | Output |\n|----------|--------|\n| `text` | Console table (default) |\n| `lcov` | `coverage\u002Flcov.info` for CI tools |\n| `json` | `coverage\u002Fcoverage.json` |\n\n## Coverage Thresholds\n\nSet minimum coverage requirements:\n\n```bash\n# Fail if coverage \u003C 80%\nbun test --coverage --coverage-threshold 80\n\n# Per-metric thresholds in bunfig.toml\n```\n\n```toml\n[test]\ncoverage = true\ncoverageThreshold = {\n  lines = 80,\n  functions = 75,\n  branches = 70\n}\n```\n\n## Excluding Files\n\n```toml\n[test]\ncoverage = true\n\n# Skip test files from coverage\ncoverageSkipTestFiles = true\n\n# Patterns to exclude\ncoverageIgnore = [\n  \"**\u002F*.test.ts\",\n  \"**\u002Ffixtures\u002F**\",\n  \"**\u002Fmocks\u002F**\"\n]\n```\n\n## CI Integration\n\n### GitHub Actions\n\n```yaml\n- name: Run tests with coverage\n  run: bun test --coverage --coverage-reporter=lcov\n\n- name: Upload coverage to Codecov\n  uses: codecov\u002Fcodecov-action@v5\n  with:\n    files: .\u002Fcoverage\u002Flcov.info\n```\n\n### Output Directory\n\n```bash\n# Custom output directory\nbun test --coverage --coverage-dir=.\u002Freports\u002Fcoverage\n```\n\n## Programmatic Coverage\n\n```typescript\nimport { test, expect } from \"bun:test\";\n\n\u002F\u002F Get coverage data programmatically\nconst coverage = Bun.coverage;\n\n\u002F\u002F Access after tests complete\nprocess.on(\"exit\", () => {\n  console.log(coverage.getCoverageData());\n});\n```\n\n## Common Errors\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| `Coverage threshold not met` | Coverage below threshold | Increase test coverage |\n| `No coverage data` | Files not executed | Check test includes file |\n| `lcov not found` | Missing reporter | Add `--coverage-reporter=lcov` |\n\n## Best Practices\n\n1. **Set realistic thresholds** - Start at 60%, increase gradually\n2. **Exclude generated files** - Mock files, type definitions\n3. **Focus on critical paths** - Business logic over boilerplate\n4. **Run in CI** - Prevent coverage regression\n\n## When to Load References\n\nLoad `references\u002Freporters.md` when:\n- Custom reporter configuration\n- CI\u002FCD integration details\n- Codecov\u002FCoveralls setup\n",{"name":5,"license":15,"metadata":41,"description":7},{"version":42},"1.0.0","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fsecondsky\u002Fclaude-skills\u002Fbun-test-coverage",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill bun-test-coverage",{"tool":58,"command":59},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill bun-test-coverage",{"tool":61,"command":62},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill bun-test-coverage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fsecondsky\u002Fclaude-skills\u002Fbun-test-coverage\u002FSKILL.md",true,[],[67,79,89,98,104,111],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":75,"publishedAt":36},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[72],{"categoryNo":73,"categoryName":74,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[76,77,78],"model","model hierarchy","model hierarchy skill",{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":85,"publishedAt":36},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[84],{"categoryNo":73,"categoryName":74,"taxonomyType":21,"taxonomyTypeDesc":22},[86,87,88],"MCP","zoom","zoom mcp",{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":36},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[95,96,97,87],"sdk","zoom apps sdk","apps",{"skillNo":99,"name":100,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":36},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[100],{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":110,"publishedAt":36},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[109],{"categoryNo":73,"categoryName":74,"taxonomyType":21,"taxonomyTypeDesc":22},[106],{"skillNo":112,"name":113,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":36},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[113]]