[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CRQ62Q9ACABEF2C4NTHJAC":3,"skill-same:01M7CRQ62Q9ACABEF2C4NTHJAC":52},{"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},"01M7CRQ62Q9ACABEF2C4NTHJAC","vitest",null,"Use when writing unit\u002Fintegration tests for Vite projects - configure vitest.config.ts, write test suites with describe\u002Fit, create mock implementations with vi.fn and vi.mock, set up code coverage thresholds, and run tests in parallel","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fonmax-nuxt-skills\u002Fvitest\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vitest\ndescription: Use when writing unit\u002Fintegration tests for Vite projects - configure vitest.config.ts, write test suites with describe\u002Fit, create mock implementations with vi.fn and vi.mock, set up code coverage thresholds, and run tests in parallel\nlicense: MIT\n---\n\n# Vitest\n\nVite-native testing framework with Jest-compatible API.\n\n## When to Use\n\n- Writing unit\u002Fintegration tests for Vite projects\n- Testing Vue\u002FReact\u002FSvelte components\n- Mocking modules, timers, or dates\n- Running concurrent\u002Fparallel tests\n- Type testing with TypeScript\n\n## Quick Start\n\n```bash\nnpm i -D vitest\n```\n\n```ts\n\u002F\u002F vitest.config.ts\nimport { defineConfig } from 'vitest\u002Fconfig'\n\nexport default defineConfig({\n  test: {\n    globals: true,\n    environment: 'node',  \u002F\u002F or 'jsdom' for DOM tests\n  },\n})\n```\n\n```ts\n\u002F\u002F example.test.ts\nimport { describe, expect, it, vi } from 'vitest'\n\ndescribe('math', () => {\n  it('adds numbers', () => {\n    expect(1 + 1).toBe(2)\n  })\n})\n```\n\n## Reference Files\n\n| Task                                     | File                                    |\n| ---------------------------------------- | --------------------------------------- |\n| Configuration, CLI, projects             | [config.md](references\u002Fconfig.md)       |\n| test\u002Fdescribe, hooks, fixtures           | [test-api.md](references\u002Ftest-api.md)   |\n| vi.fn, vi.mock, timers, spies            | [mocking.md](references\u002Fmocking.md)     |\n| expect, snapshots, coverage, filtering   | [utilities.md](references\u002Futilities.md) |\n| Environments, type testing, browser mode | [advanced.md](references\u002Fadvanced.md)   |\n\n## Loading Files\n\n**Consider loading these reference files based on your task:**\n\n- [ ] [references\u002Fconfig.md](references\u002Fconfig.md) - if setting up vitest.config.ts, CLI, or workspace projects\n- [ ] [references\u002Ftest-api.md](references\u002Ftest-api.md) - if writing test\u002Fdescribe blocks, using hooks, or test fixtures\n- [ ] [references\u002Fmocking.md](references\u002Fmocking.md) - if mocking modules, timers, dates, or using spies\n- [ ] [references\u002Futilities.md](references\u002Futilities.md) - if writing assertions, snapshots, or configuring coverage\n- [ ] [references\u002Fadvanced.md](references\u002Fadvanced.md) - if configuring test environments, type testing, or browser mode\n\n**DO NOT load all files at once.** Load only what's relevant to your current task.\n\n## Cross-Skill References\n\n- **Vue component testing** → Use `vue` skill for component patterns\n- **Library testing** → Use `ts-library` skill for library patterns\n- **Vite configuration** → Use `vite` skill for shared config\n","# Vitest\n\nVite-native testing framework with Jest-compatible API.\n\n## When to Use\n\n- Writing unit\u002Fintegration tests for Vite projects\n- Testing Vue\u002FReact\u002FSvelte components\n- Mocking modules, timers, or dates\n- Running concurrent\u002Fparallel tests\n- Type testing with TypeScript\n\n## Quick Start\n\n```bash\nnpm i -D vitest\n```\n\n```ts\n\u002F\u002F vitest.config.ts\nimport { defineConfig } from 'vitest\u002Fconfig'\n\nexport default defineConfig({\n  test: {\n    globals: true,\n    environment: 'node',  \u002F\u002F or 'jsdom' for DOM tests\n  },\n})\n```\n\n```ts\n\u002F\u002F example.test.ts\nimport { describe, expect, it, vi } from 'vitest'\n\ndescribe('math', () => {\n  it('adds numbers', () => {\n    expect(1 + 1).toBe(2)\n  })\n})\n```\n\n## Reference Files\n\n| Task                                     | File                                    |\n| ---------------------------------------- | --------------------------------------- |\n| Configuration, CLI, projects             | [config.md](references\u002Fconfig.md)       |\n| test\u002Fdescribe, hooks, fixtures           | [test-api.md](references\u002Ftest-api.md)   |\n| vi.fn, vi.mock, timers, spies            | [mocking.md](references\u002Fmocking.md)     |\n| expect, snapshots, coverage, filtering   | [utilities.md](references\u002Futilities.md) |\n| Environments, type testing, browser mode | [advanced.md](references\u002Fadvanced.md)   |\n\n## Loading Files\n\n**Consider loading these reference files based on your task:**\n\n- [ ] [references\u002Fconfig.md](references\u002Fconfig.md) - if setting up vitest.config.ts, CLI, or workspace projects\n- [ ] [references\u002Ftest-api.md](references\u002Ftest-api.md) - if writing test\u002Fdescribe blocks, using hooks, or test fixtures\n- [ ] [references\u002Fmocking.md](references\u002Fmocking.md) - if mocking modules, timers, dates, or using spies\n- [ ] [references\u002Futilities.md](references\u002Futilities.md) - if writing assertions, snapshots, or configuring coverage\n- [ ] [references\u002Fadvanced.md](references\u002Fadvanced.md) - if configuring test environments, type testing, or browser mode\n\n**DO NOT load all files at once.** Load only what's relevant to your current task.\n\n## Cross-Skill References\n\n- **Vue component testing** → Use `vue` skill for component patterns\n- **Library testing** → Use `ts-library` skill for library patterns\n- **Vite configuration** → Use `vite` skill for shared config\n",{"name":5,"license":15,"description":7},"main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fonmax-nuxt-skills\u002Fvitest",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill vitest",{"tool":38,"command":39},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill vitest",{"tool":41,"command":42},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill vitest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fonmax-nuxt-skills\u002Fvitest\u002FSkill.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"metadata.json","REFERENCE","参考文档",394,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fonmax-nuxt-skills\u002Fvitest\u002Fmetadata.json",[53,60,65,72,77,84],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":61,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":73,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":85,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]