[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72E9Q52C72TK6S5J4X8EMX2":3,"skill-same:01M72E9Q52C72TK6S5J4X8EMX2":72},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M72E9Q52C72TK6S5J4X8EMX2","typescript-unit-tests",null,"Unit test rules for this TypeScript project -- which test modules exist, how source is shaped for them, how cases, doubles, and boundaries are written, and how to review them. Use when planning, writing, changing, or reviewing extensions\u002Fpi-claude-marketplace\u002F**\u002F*.ts or test\u002F**\u002F*.ts.","acolomba\u002Fpi-claude-marketplace","acolomba","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6459?v=4","01M72E7TWVKS2VCX2HJX9PXAMC","Alessandro Colomba","01M72E7TXFNRH9GKDMHYQVQQY1",29,"MIT","https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-unit-tests\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: typescript-unit-tests\ndescription: Unit test rules for this TypeScript project -- which test modules exist, how source is shaped for them, how cases, doubles, and boundaries are written, and how to review them. Use when planning, writing, changing, or reviewing extensions\u002Fpi-claude-marketplace\u002F**\u002F*.ts or test\u002F**\u002F*.ts.\n---\n\n# TypeScript unit tests\n\nEvery case must discriminate the behavior named in its title: a wrong implementation makes the assertion fail. A test with weak assertions costs all the maintenance of a test and gives none of the protection. A planned case names the behavior it proves; a verified case would fail if that behavior broke.\n\nIn the rules files, \"Do\" and \"Do not\" are hard rules. \"Prefer\" states the default and allows a justified exception. \"May\" grants a permission.\n\nUse `node:test` for the runner, lifecycle, and the context's `t.mock`; `node:assert\u002Fstrict` for assertions; `strong-mock` for strict interaction mocks; `--experimental-test-coverage` for coverage. Do not add another runner, assertion library, or mocking library.\n\n## Read before you act\n\n| When you                                                                                   | Read                                                               |\n| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |\n| plan, add, move, or rename a source or test module                                         | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Fpairing-and-design.md` |\n| write the imports of a test module                                                         | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Ftools.md`              |\n| write or change a test case                                                                | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Fcases.md`              |\n| use a fake, a spy, or a `strong-mock` mock                                                 | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Ftest-doubles.md`       |\n| test a type-only module, a barrel, the filesystem, HTTP, time, env, or an adapter contract | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Fboundaries.md`         |\n| review a case or a source-test pair, or classify a finding                                 | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Freview.md`             |\n| run tests or decide which checks a task needs                                              | `.agents\u002Fskills\u002Flocal-verification\u002FSKILL.md`                       |\n\n## Review\n\nThe central question for every case: **would a plausible wrong implementation still pass it?** A weak assertion is the highest-value finding.\n","# TypeScript unit tests\n\nEvery case must discriminate the behavior named in its title: a wrong implementation makes the assertion fail. A test with weak assertions costs all the maintenance of a test and gives none of the protection. A planned case names the behavior it proves; a verified case would fail if that behavior broke.\n\nIn the rules files, \"Do\" and \"Do not\" are hard rules. \"Prefer\" states the default and allows a justified exception. \"May\" grants a permission.\n\nUse `node:test` for the runner, lifecycle, and the context's `t.mock`; `node:assert\u002Fstrict` for assertions; `strong-mock` for strict interaction mocks; `--experimental-test-coverage` for coverage. Do not add another runner, assertion library, or mocking library.\n\n## Read before you act\n\n| When you                                                                                   | Read                                                               |\n| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |\n| plan, add, move, or rename a source or test module                                         | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Fpairing-and-design.md` |\n| write the imports of a test module                                                         | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Ftools.md`              |\n| write or change a test case                                                                | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Fcases.md`              |\n| use a fake, a spy, or a `strong-mock` mock                                                 | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Ftest-doubles.md`       |\n| test a type-only module, a barrel, the filesystem, HTTP, time, env, or an adapter contract | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Fboundaries.md`         |\n| review a case or a source-test pair, or classify a finding                                 | `.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Freview.md`             |\n| run tests or decide which checks a task needs                                              | `.agents\u002Fskills\u002Flocal-verification\u002FSKILL.md`                       |\n\n## Review\n\nThe central question for every case: **would a plausible wrong implementation still pass it?** A weak assertion is the highest-value finding.\n",{"name":5,"description":7},"main","e11a4ae750f73683358b81398b749edb27c1fa24",".agents\u002Fskills\u002Ftypescript-unit-tests",15,"https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace","https:\u002F\u002Fgithub.com\u002Facolomba","Distinguished Engineer","2026-11-11 18:27:37",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add acolomba\u002Fpi-claude-marketplace --skill typescript-unit-tests",{"tool":38,"command":39},"bunx","bunx skills add acolomba\u002Fpi-claude-marketplace --skill typescript-unit-tests",{"tool":41,"command":42},"pnpm","pnpm dlx skills add acolomba\u002Fpi-claude-marketplace --skill typescript-unit-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-unit-tests\u002FSKILL.md",true,[46,52,56,60,64,68],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"rules\u002Fboundaries.md","REFERENCE","参考文档",2620,"https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Fboundaries.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"rules\u002Fcases.md",6797,"https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Fcases.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"rules\u002Fpairing-and-design.md",4797,"https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Fpairing-and-design.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"rules\u002Freview.md",1438,"https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Freview.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"rules\u002Ftest-doubles.md",4133,"https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Ftest-doubles.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"rules\u002Ftools.md",404,"https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftypescript-unit-tests\u002Frules\u002Ftools.md",[73,79,85,91,97,103],{"skillNo":74,"name":75,"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":76,"categories":77,"keywords":78,"publishedAt":19},"01M72EA0RJW0Q0R0DPSDR5GNVD","official-skill","https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fimport-command\u002Fofficial-marketplace\u002Fplugins\u002Fofficial-plugin\u002Fskills\u002Fofficial-skill\u002FSKILL.md",[],[],{"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":84,"publishedAt":19},"01M72E9YSE4Q4XF6D6CTG9QFR3","mismatch-skill","https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fimport-command\u002Fmismatched-directory-marketplace\u002Fplugins\u002Fmismatch-placeholder\u002Fskills\u002Fmismatch-skill\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"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":88,"categories":89,"keywords":90,"publishedAt":19},"01M72E9WZJ3V2RXB6NAH96DSK1","github-skill","https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fimport-command\u002Fgithub-marketplace\u002Fplugins\u002Fgithub-plugin\u002Fskills\u002Fgithub-skill\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"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":94,"categories":95,"keywords":96,"publishedAt":19},"01M72E9VDTPDZW6QXVEHS4KQ2D","preinstalled-skill","https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fimport-command\u002Fdirectory-marketplace\u002Fplugins\u002Fpreinstalled-plugin\u002Fskills\u002Fpreinstalled-skill\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"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":100,"categories":101,"keywords":102,"publishedAt":19},"01M72E9TRV4FQNJ87B19X56QZQ","local-skill","https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fimport-command\u002Fdirectory-marketplace\u002Fplugins\u002Flocal-plugin\u002Fskills\u002Flocal-skill\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"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":106,"categories":107,"keywords":108,"publishedAt":19},"01M72E9S9N39QKPJ9371JF3W0G","disabled-skill","https:\u002F\u002Fgithub.com\u002Facolomba\u002Fpi-claude-marketplace\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fimport-command\u002Fdirectory-marketplace\u002Fplugins\u002Fdisabled-by-local\u002Fskills\u002Fdisabled-skill\u002FSKILL.md",[],[]]