[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70G0CH5E4PVJ62YBP7WKV44":3,"skill-same:01M70G0CH5E4PVJ62YBP7WKV44":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M70G0CH5E4PVJ62YBP7WKV44","test-unit",null,"Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.","dhaupin\u002Fvant","dhaupin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6352930?v=4","01M70FR23MK9RWZMWEQCWXMJ5Y","01M70FR24ETCQQSC3TGH374C6A",16,"MIT","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-unit\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"unit","test","test unit","error","commits","fixes","methods","edge","use","when","error handling","functions","bug","isolation","path","2026-11-10 10:12:30",false,"---\nname: test-unit\ndescription: Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.\nlicense: MIT\nmetadata:\n  author: vant\n  version: \"1.0\"\n---\n\n# Unit Test\n\n> Test individual functions.\n\n## When To Use\n\n- New function\n- After bug fix\n- Before commit\n\n---\n\n## What To Test\n\n### 1. Happy Path\n\n```javascript\ntest('add works', () => {\n  expect(add(1, 2)).toBe(3)\n})\n```\n\n### 2. Edge Cases\n\n```javascript\ntest('add handles null', () => {\n  expect(add(null, 2)).toBe(2)\n})\n\ntest('add handles string', () => {\n  expect(add('1', 2)).toBe(3)\n})\n```\n\n### 3. Errors\n\n```javascript\ntest('add throws on invalid', () => {\n  expect(() => add()).toThrow()\n})\n```\n\n---\n\n## Patterns\n\n| Test | For |\n|------|-----|\n| toBe | Exact value |\n| toEqual | Structure |\n| toThrow | Errors |\n| toHaveBeenCalled | Functions |\n\n---\n\n## Output\n\n```\n## Unit Tests\n\n### Passed\n- [n] tests\n\n### Failed\n- [n] tests\n\n### Coverage\n- [n]%\n```\n\n---\n\n**Role**: Unit Tester **Input**: Test file **Output**: Test results\n\n> Test the smallest pieces.","# Unit Test\n\n> Test individual functions.\n\n## When To Use\n\n- New function\n- After bug fix\n- Before commit\n\n---\n\n## What To Test\n\n### 1. Happy Path\n\n```javascript\ntest('add works', () => {\n  expect(add(1, 2)).toBe(3)\n})\n```\n\n### 2. Edge Cases\n\n```javascript\ntest('add handles null', () => {\n  expect(add(null, 2)).toBe(2)\n})\n\ntest('add handles string', () => {\n  expect(add('1', 2)).toBe(3)\n})\n```\n\n### 3. Errors\n\n```javascript\ntest('add throws on invalid', () => {\n  expect(() => add()).toThrow()\n})\n```\n\n---\n\n## Patterns\n\n| Test | For |\n|------|-----|\n| toBe | Exact value |\n| toEqual | Structure |\n| toThrow | Errors |\n| toHaveBeenCalled | Functions |\n\n---\n\n## Output\n\n```\n## Unit Tests\n\n### Passed\n- [n] tests\n\n### Failed\n- [n] tests\n\n### Coverage\n- [n]%\n```\n\n---\n\n**Role**: Unit Tester **Input**: Test file **Output**: Test results\n\n> Test the smallest pieces.",{"name":5,"license":14,"metadata":38,"description":7},{"author":39,"version":40},"vant","1.0","main","8b503d1512c76e22a20a6ec9300fa670b37a79be","models\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-unit",1,"https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant","https:\u002F\u002Fvant.creadev.org","https:\u002F\u002Fgithub.com\u002Fdhaupin","https:\u002F\u002Fcreadev.org\u002F","Hi. I make web, app, ecom, enterprise, agent, and orchestration things. Let me know if I can help with your next project. 🤝 Part of the Creadev.org team.","2026-11-13 16:43:16",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add dhaupin\u002Fvant --skill test-unit",{"tool":57,"command":58},"bunx","bunx skills add dhaupin\u002Fvant --skill test-unit",{"tool":60,"command":61},"pnpm","pnpm dlx skills add dhaupin\u002Fvant --skill test-unit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-unit\u002FSKILL.md",true,[],[66,75,86,94,118,137],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":33},"01M70G0NZMN2E0RPCAH59497C3","yaml","Data serialization.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-yaml\u002FSKILL.md",[],[68,73,74],"data","serialization",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":33},"01M70G0MV7JGRXJ60VZZ692ZTM","vite","Frontend build tool.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-vite\u002FSKILL.md",[],[77,82,83,84,85],"frontend","build tool","build","tool",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":33},"01M70G0HAFQC4K6N14B5CWPMQ2","typescript","Typed JavaScript.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-typescript\u002FSKILL.md",[],[88,93],"javascript",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":33},"01M70G08P5CPCX3B3RJFF9VJC2","test-snapshot","Capture and compare UI\u002Fcomponent snapshots to detect visual changes. Use when testing UI rendering, before visual changes, or for design systems.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-snapshot\u002FSKILL.md",[],[101,102,19,103,104,105,26,106,107,27,108,109,110,111,112,113,114,115,116,117],"test snapshot","snapshot","detect","testing","design","design systems","snapshots","visual","compare","component","changes","rendering","systems","testing ui","capture","ui","for",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":33},"01M70G03WAR8HYBH7R2AZJRPCZ","test-smoke","Quick sanity check to verify basic functionality works. Run fastest tests first. Use when needing quick verification before deeper testing.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-smoke\u002FSKILL.md",[],[19,125,126,127,128,129,104,130,26,27,131,132,133,134,135,136],"test smoke","smoke","quick","deeper","basic","tests","check","sanity","verification","first","verify","run",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":33},"01M70FZZDJQ0V28PDT0P4GXW27","test-regression","Verify no new bugs introduced since last release. Run full test suite against changes. Use when checking for regressions or before releases.","https:\u002F\u002Fgithub.com\u002Fdhaupin\u002Fvant\u002Fblob\u002Fmain\u002Fmodels\u002Fpublic\u002Fvant\u002Fskills\u002Fvant-skill-test-regression\u002FSKILL.md",[],[19,144,145,146,117,147,26,27,148,111,135,149,136,150,151,152],"test regression","regression","bugs","test suite","last","releases","release","suite","full"]