[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DNEV2JC6XXE18DB7YDBDTE":3,"skill-same:01M7DNEV2JC6XXE18DB7YDBDTE":47},{"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":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7DNEV2JC6XXE18DB7YDBDTE","unit-tests",null,"Use when running unit tests in the VS Code repo. Covers the runTests tool, scripts\u002Ftest.sh (macOS\u002FLinux) and scripts\u002Ftest.bat (Windows), and their supported arguments for filtering, globbing, and debugging tests.","DragonBallerZ\u002Fdragon-ide","DragonBallerZ","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F199459338?v=4","01M7DN83GSDPNQH3ACEV21SKTQ","Z McDragon","01M7DN83HDR4KMJAMTCB5S4DCJ",12,"MIT","https:\u002F\u002Fgithub.com\u002FDragonBallerZ\u002Fdragon-ide\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Funit-tests\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unit-tests\ndescription: Use when running unit tests in the VS Code repo. Covers the runTests tool, scripts\u002Ftest.sh (macOS\u002FLinux) and scripts\u002Ftest.bat (Windows), and their supported arguments for filtering, globbing, and debugging tests.\n---\n\n# Running Unit Tests\n\n## Preferred: Use the `runTests` tool\n\nIf the `runTests` tool is available, **prefer it** over running shell commands. It provides structured output with detailed pass\u002Ffail information and supports filtering by file and test name.\n\n- Pass absolute paths to test files via the `files` parameter.\n- Pass test names via the `testNames` parameter to filter which tests run.\n- Set `mode=\"coverage\"` to collect coverage.\n\nExample (conceptual): run tests in `src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts` with test name filter `\"should split lines\"`.\n\n## Fallback: Shell scripts\n\nWhen the `runTests` tool is not available (e.g. in CLI environments), use the platform-appropriate script from the repo root:\n\n- **macOS \u002F Linux:** `.\u002Fscripts\u002Ftest.sh [options]`\n- **Windows:** `.\\scripts\\test.bat [options]`\n\nThese scripts download Electron if needed and launch the Mocha test runner.\n\n### Commonly used options\n\n#### Bare file paths - Run tests from specific files\n\nPass source file paths directly as positional arguments. The test runner automatically treats bare `.ts`\u002F`.js` positional arguments as `--run` values.\n\n```bash\n.\u002Fscripts\u002Ftest.sh src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts\n```\n\n```bat\n.\\scripts\\test.bat src\\vs\\editor\\test\\common\\model.test.ts\n```\n\nMultiple files:\n\n```bash\n.\u002Fscripts\u002Ftest.sh src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Frange.test.ts\n```\n\n#### `--run \u003Cfile>` - Run tests from a specific file (explicit form)\n\nAccepts a **source file path** (starting with `src\u002F`). The runner strips the `src\u002F` prefix and the `.ts`\u002F`.js` extension automatically to resolve the compiled module.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts\n```\n\nMultiple files can be specified by repeating `--run`:\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Frange.test.ts\n```\n\n#### `--grep \u003Cpattern>` (aliases: `-g`, `-f`) - Filter tests by name\n\nRuns only tests whose full title matches the pattern (passed to Mocha's `--grep`).\n\n```bash\n.\u002Fscripts\u002Ftest.sh --grep \"should split lines\"\n```\n\nCombine with `--run` to filter tests within a specific file:\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --grep \"should split lines\"\n```\n\n#### `--runGlob \u003Cpattern>` (aliases: `--glob`, `--runGrep`) - Run tests matching a glob\n\nRuns all test files matching a glob pattern against the compiled output directory. Useful for running all tests under a feature area.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --runGlob \"**\u002Feditor\u002Ftest\u002F**\u002F*.test.js\"\n```\n\nNote: the glob runs against compiled `.js` files in the output directory, not source `.ts` files.\n\n#### `--coverage` - Generate a coverage report\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --coverage\n```\n\n#### `--timeout \u003Cms>` - Set test timeout\n\nOverride the default Mocha timeout for long-running tests.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --timeout 10000\n```\n\n### Integration tests\n\nIntegration tests (files ending in `.integrationTest.ts` or located in `extensions\u002F`) are **not run** by `scripts\u002Ftest.sh`. Use `scripts\u002Ftest-integration.sh` (or `scripts\u002Ftest-integration.bat`) instead. See the `integration-tests` skill for details.\n\n### Compilation requirement\n\nTests run against compiled JavaScript output. Ensure the `VS Code - Build` watch task is running or that compilation has completed before running tests. Test failures caused by stale output are a common pitfall.\n","# Running Unit Tests\n\n## Preferred: Use the `runTests` tool\n\nIf the `runTests` tool is available, **prefer it** over running shell commands. It provides structured output with detailed pass\u002Ffail information and supports filtering by file and test name.\n\n- Pass absolute paths to test files via the `files` parameter.\n- Pass test names via the `testNames` parameter to filter which tests run.\n- Set `mode=\"coverage\"` to collect coverage.\n\nExample (conceptual): run tests in `src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts` with test name filter `\"should split lines\"`.\n\n## Fallback: Shell scripts\n\nWhen the `runTests` tool is not available (e.g. in CLI environments), use the platform-appropriate script from the repo root:\n\n- **macOS \u002F Linux:** `.\u002Fscripts\u002Ftest.sh [options]`\n- **Windows:** `.\\scripts\\test.bat [options]`\n\nThese scripts download Electron if needed and launch the Mocha test runner.\n\n### Commonly used options\n\n#### Bare file paths - Run tests from specific files\n\nPass source file paths directly as positional arguments. The test runner automatically treats bare `.ts`\u002F`.js` positional arguments as `--run` values.\n\n```bash\n.\u002Fscripts\u002Ftest.sh src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts\n```\n\n```bat\n.\\scripts\\test.bat src\\vs\\editor\\test\\common\\model.test.ts\n```\n\nMultiple files:\n\n```bash\n.\u002Fscripts\u002Ftest.sh src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Frange.test.ts\n```\n\n#### `--run \u003Cfile>` - Run tests from a specific file (explicit form)\n\nAccepts a **source file path** (starting with `src\u002F`). The runner strips the `src\u002F` prefix and the `.ts`\u002F`.js` extension automatically to resolve the compiled module.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts\n```\n\nMultiple files can be specified by repeating `--run`:\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Frange.test.ts\n```\n\n#### `--grep \u003Cpattern>` (aliases: `-g`, `-f`) - Filter tests by name\n\nRuns only tests whose full title matches the pattern (passed to Mocha's `--grep`).\n\n```bash\n.\u002Fscripts\u002Ftest.sh --grep \"should split lines\"\n```\n\nCombine with `--run` to filter tests within a specific file:\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --grep \"should split lines\"\n```\n\n#### `--runGlob \u003Cpattern>` (aliases: `--glob`, `--runGrep`) - Run tests matching a glob\n\nRuns all test files matching a glob pattern against the compiled output directory. Useful for running all tests under a feature area.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --runGlob \"**\u002Feditor\u002Ftest\u002F**\u002F*.test.js\"\n```\n\nNote: the glob runs against compiled `.js` files in the output directory, not source `.ts` files.\n\n#### `--coverage` - Generate a coverage report\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --coverage\n```\n\n#### `--timeout \u003Cms>` - Set test timeout\n\nOverride the default Mocha timeout for long-running tests.\n\n```bash\n.\u002Fscripts\u002Ftest.sh --run src\u002Fvs\u002Feditor\u002Ftest\u002Fcommon\u002Fmodel.test.ts --timeout 10000\n```\n\n### Integration tests\n\nIntegration tests (files ending in `.integrationTest.ts` or located in `extensions\u002F`) are **not run** by `scripts\u002Ftest.sh`. Use `scripts\u002Ftest-integration.sh` (or `scripts\u002Ftest-integration.bat`) instead. See the `integration-tests` skill for details.\n\n### Compilation requirement\n\nTests run against compiled JavaScript output. Ensure the `VS Code - Build` watch task is running or that compilation has completed before running tests. Test failures caused by stale output are a common pitfall.\n",{"name":5,"description":7},"main","af285532414d1fa855b4360d86103c12253e6f2f",".github\u002Fskills\u002Funit-tests",0,"https:\u002F\u002Fgithub.com\u002FDragonBallerZ\u002Fdragon-ide","https:\u002F\u002Fgithub.com\u002FDragonBallerZ","https:\u002F\u002Fwww.velloralabs.com","Building Dangerously Disruptive Technology. ","2026-10-23 14:19:51",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add DragonBallerZ\u002Fdragon-ide --skill unit-tests",{"tool":39,"command":40},"bunx","bunx skills add DragonBallerZ\u002Fdragon-ide --skill unit-tests",{"tool":42,"command":43},"pnpm","pnpm dlx skills add DragonBallerZ\u002Fdragon-ide --skill unit-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDragonBallerZ\u002Fdragon-ide\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Funit-tests\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7DNGQPVJGHW226R8PS3R31F","update-skills","Create or update repository skills and instructions when major learnings are discovered during a session. Use when the user says \"learn!\", when a significant pattern or pitfall is identified, or when reusable domain knowledge should be captured for future sessions.","https:\u002F\u002Fgithub.com\u002FDragonBallerZ\u002Fdragon-ide\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fupdate-skills\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7DNGP5XJWV3CG63DVS6NR8Y","update-pr","Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.","https:\u002F\u002Fgithub.com\u002FDragonBallerZ\u002Fdragon-ide\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fupdate-pr\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7DNGJEMNJZR24NBJ7MF5V8R","troubleshoot","Investigate unexpected behavior in the current Copilot agent session by analyzing its event log. Use when the user asks why something happened, why a request was slow, why a tool was or was not used, or why instructions\u002Fskills\u002Fagents did not load.","https:\u002F\u002Fgithub.com\u002FDragonBallerZ\u002Fdragon-ide\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Ftroubleshoot\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7DNGFVCVMFN5J4ZKV27CDR1","sync","Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.","https:\u002F\u002Fgithub.com\u002FDragonBallerZ\u002Fdragon-ide\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fsync\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7DNGC9GE8EKQED3ZR3KAJ0K","sync-upstream","Update a stale session branch by rebasing onto the latest origin. Use when the upstream has moved significantly and the session needs to catch up, resolving conflicts by preserving upstream changes and adapting session work to fit.","https:\u002F\u002Fgithub.com\u002FDragonBallerZ\u002Fdragon-ide\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fsync-upstream\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DNG9NJNG1QPJB6C3GFDHVS","merge","Merge changes from the topic branch to the merge base branch. Use when the user wants to merge their session's work back to the base branch.","https:\u002F\u002Fgithub.com\u002FDragonBallerZ\u002Fdragon-ide\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fmerge\u002FSKILL.md",[],[]]