[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79A15VY5YDVVXQGCN80CDF4":3,"skill-same:01M79A15VY5YDVVXQGCN80CDF4":46},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M79A15VY5YDVVXQGCN80CDF4","bun-test-basics",null,"Use for bun:test syntax, assertions, describe\u002Fit, test.skip\u002Fonly\u002Feach, and basic patterns.","Elogic360\u002Fsoftware-factory","Elogic360","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F156535519?v=4","01M74NH3F0RB13PWB7JZDE2V80","elogic360","01M74NH3FPC65082MDZVMFHDM3",0,"MIT","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fbun\u002Fskills\u002Fbun-test-basics\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bun-test-basics\ndescription: \"Use for bun:test syntax, assertions, describe\u002Fit, test.skip\u002Fonly\u002Feach, and basic patterns.\"\nmetadata:\n  version: \"1.0.0\"\nlicense: MIT\n---\n\n# Bun Test Basics\n\nBun ships with a fast, built-in, Jest-compatible test runner. Tests run with the Bun runtime and support TypeScript\u002FJSX natively.\n\n## Quick Start\n\n```bash\n# Run all tests\nbun test\n\n# Run specific file\nbun test .\u002Ftest\u002Fmath.test.ts\n\n# Run tests matching pattern\nbun test --test-name-pattern \"addition\"\n```\n\n## Writing Tests\n\n```typescript\nimport { test, expect, describe } from \"bun:test\";\n\ntest(\"2 + 2\", () => {\n  expect(2 + 2).toBe(4);\n});\n\ndescribe(\"math\", () => {\n  test(\"addition\", () => {\n    expect(1 + 1).toBe(2);\n  });\n\n  test(\"subtraction\", () => {\n    expect(5 - 3).toBe(2);\n  });\n});\n```\n\n## Test File Patterns\n\nBun discovers test files matching:\n- `*.test.{js|jsx|ts|tsx}`\n- `*_test.{js|jsx|ts|tsx}`\n- `*.spec.{js|jsx|ts|tsx}`\n- `*_spec.{js|jsx|ts|tsx}`\n\n## Test Modifiers\n\n```typescript\n\u002F\u002F Skip a test\ntest.skip(\"not ready\", () => {\n  \u002F\u002F won't run\n});\n\n\u002F\u002F Only run this test\ntest.only(\"focus on this\", () => {\n  \u002F\u002F other tests won't run\n});\n\n\u002F\u002F Placeholder for future test\ntest.todo(\"implement later\");\n\n\u002F\u002F Expected to fail\ntest.failing(\"known bug\", () => {\n  throw new Error(\"This is expected\");\n});\n```\n\n## Parameterized Tests\n\n```typescript\ntest.each([\n  [1, 1, 2],\n  [2, 2, 4],\n  [3, 3, 6],\n])(\"add(%i, %i) = %i\", (a, b, expected) => {\n  expect(a + b).toBe(expected);\n});\n\n\u002F\u002F With objects\ntest.each([\n  { a: 1, b: 2, expected: 3 },\n  { a: 5, b: 5, expected: 10 },\n])(\"add($a, $b) = $expected\", ({ a, b, expected }) => {\n  expect(a + b).toBe(expected);\n});\n```\n\n## Concurrent Tests\n\n```typescript\n\u002F\u002F Run tests in parallel\ntest.concurrent(\"async test 1\", async () => {\n  await fetch(\"\u002Fapi\u002F1\");\n});\n\ntest.concurrent(\"async test 2\", async () => {\n  await fetch(\"\u002Fapi\u002F2\");\n});\n\n\u002F\u002F Force sequential when using --concurrent\ntest.serial(\"must run alone\", () => {\n  \u002F\u002F runs sequentially\n});\n```\n\n## Common Matchers\n\n```typescript\n\u002F\u002F Equality\nexpect(value).toBe(4);           \u002F\u002F Strict equality\nexpect(obj).toEqual({ a: 1 });   \u002F\u002F Deep equality\nexpect(value).toStrictEqual(4);  \u002F\u002F Strict + type\n\n\u002F\u002F Truthiness\nexpect(value).toBeTruthy();\nexpect(value).toBeFalsy();\nexpect(value).toBeNull();\nexpect(value).toBeDefined();\nexpect(value).toBeUndefined();\n\n\u002F\u002F Numbers\nexpect(value).toBeGreaterThan(3);\nexpect(value).toBeGreaterThanOrEqual(3);\nexpect(value).toBeLessThan(5);\nexpect(value).toBeCloseTo(0.3, 5);  \u002F\u002F Floating point\n\n\u002F\u002F Strings\nexpect(str).toMatch(\u002Fpattern\u002F);\nexpect(str).toContain(\"substring\");\nexpect(str).toStartWith(\"Hello\");\nexpect(str).toEndWith(\"world\");\n\n\u002F\u002F Arrays\nexpect(arr).toContain(item);\nexpect(arr).toContainEqual({ a: 1 });\nexpect(arr).toHaveLength(3);\n\n\u002F\u002F Objects\nexpect(obj).toHaveProperty(\"key\");\nexpect(obj).toHaveProperty(\"key\", value);\nexpect(obj).toMatchObject({ a: 1 });\n\n\u002F\u002F Exceptions\nexpect(() => fn()).toThrow();\nexpect(() => fn()).toThrow(\"message\");\nexpect(() => fn()).toThrow(CustomError);\n\n\u002F\u002F Async\nawait expect(promise).resolves.toBe(value);\nawait expect(promise).rejects.toThrow();\n\n\u002F\u002F Negation\nexpect(value).not.toBe(5);\n```\n\n## CLI Options\n\n```bash\n# Timeout per test (default 5000ms)\nbun test --timeout 20\n\n# Bail after N failures\nbun test --bail\nbun test --bail=10\n\n# Watch mode\nbun test --watch\n\n# Random order\nbun test --randomize\nbun test --seed 12345\n\n# Concurrent execution\nbun test --concurrent\nbun test --concurrent --max-concurrency 4\n\n# Filter by name\nbun test -t \"pattern\"\n```\n\n## Output Reporters\n\n```bash\n# Dots (compact)\nbun test --dots\n\n# JUnit XML (CI\u002FCD)\nbun test --reporter=junit --reporter-outfile=.\u002Fresults.xml\n```\n\n## Common Errors\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| `Test timeout` | Test exceeds 5s | Use `--timeout` or optimize |\n| `No tests found` | Wrong file pattern | Check file naming |\n| `expect is not defined` | Missing import | Import from `bun:test` |\n| `Assertion failed` | Test failure | Check expected vs actual |\n\n## When to Load References\n\nLoad `references\u002Fmatchers.md` when:\n- Need complete matcher reference\n- Custom matcher patterns\n\nLoad `references\u002Fcli-options.md` when:\n- Full CLI flag reference\n- Advanced execution options\n","# Bun Test Basics\n\nBun ships with a fast, built-in, Jest-compatible test runner. Tests run with the Bun runtime and support TypeScript\u002FJSX natively.\n\n## Quick Start\n\n```bash\n# Run all tests\nbun test\n\n# Run specific file\nbun test .\u002Ftest\u002Fmath.test.ts\n\n# Run tests matching pattern\nbun test --test-name-pattern \"addition\"\n```\n\n## Writing Tests\n\n```typescript\nimport { test, expect, describe } from \"bun:test\";\n\ntest(\"2 + 2\", () => {\n  expect(2 + 2).toBe(4);\n});\n\ndescribe(\"math\", () => {\n  test(\"addition\", () => {\n    expect(1 + 1).toBe(2);\n  });\n\n  test(\"subtraction\", () => {\n    expect(5 - 3).toBe(2);\n  });\n});\n```\n\n## Test File Patterns\n\nBun discovers test files matching:\n- `*.test.{js|jsx|ts|tsx}`\n- `*_test.{js|jsx|ts|tsx}`\n- `*.spec.{js|jsx|ts|tsx}`\n- `*_spec.{js|jsx|ts|tsx}`\n\n## Test Modifiers\n\n```typescript\n\u002F\u002F Skip a test\ntest.skip(\"not ready\", () => {\n  \u002F\u002F won't run\n});\n\n\u002F\u002F Only run this test\ntest.only(\"focus on this\", () => {\n  \u002F\u002F other tests won't run\n});\n\n\u002F\u002F Placeholder for future test\ntest.todo(\"implement later\");\n\n\u002F\u002F Expected to fail\ntest.failing(\"known bug\", () => {\n  throw new Error(\"This is expected\");\n});\n```\n\n## Parameterized Tests\n\n```typescript\ntest.each([\n  [1, 1, 2],\n  [2, 2, 4],\n  [3, 3, 6],\n])(\"add(%i, %i) = %i\", (a, b, expected) => {\n  expect(a + b).toBe(expected);\n});\n\n\u002F\u002F With objects\ntest.each([\n  { a: 1, b: 2, expected: 3 },\n  { a: 5, b: 5, expected: 10 },\n])(\"add($a, $b) = $expected\", ({ a, b, expected }) => {\n  expect(a + b).toBe(expected);\n});\n```\n\n## Concurrent Tests\n\n```typescript\n\u002F\u002F Run tests in parallel\ntest.concurrent(\"async test 1\", async () => {\n  await fetch(\"\u002Fapi\u002F1\");\n});\n\ntest.concurrent(\"async test 2\", async () => {\n  await fetch(\"\u002Fapi\u002F2\");\n});\n\n\u002F\u002F Force sequential when using --concurrent\ntest.serial(\"must run alone\", () => {\n  \u002F\u002F runs sequentially\n});\n```\n\n## Common Matchers\n\n```typescript\n\u002F\u002F Equality\nexpect(value).toBe(4);           \u002F\u002F Strict equality\nexpect(obj).toEqual({ a: 1 });   \u002F\u002F Deep equality\nexpect(value).toStrictEqual(4);  \u002F\u002F Strict + type\n\n\u002F\u002F Truthiness\nexpect(value).toBeTruthy();\nexpect(value).toBeFalsy();\nexpect(value).toBeNull();\nexpect(value).toBeDefined();\nexpect(value).toBeUndefined();\n\n\u002F\u002F Numbers\nexpect(value).toBeGreaterThan(3);\nexpect(value).toBeGreaterThanOrEqual(3);\nexpect(value).toBeLessThan(5);\nexpect(value).toBeCloseTo(0.3, 5);  \u002F\u002F Floating point\n\n\u002F\u002F Strings\nexpect(str).toMatch(\u002Fpattern\u002F);\nexpect(str).toContain(\"substring\");\nexpect(str).toStartWith(\"Hello\");\nexpect(str).toEndWith(\"world\");\n\n\u002F\u002F Arrays\nexpect(arr).toContain(item);\nexpect(arr).toContainEqual({ a: 1 });\nexpect(arr).toHaveLength(3);\n\n\u002F\u002F Objects\nexpect(obj).toHaveProperty(\"key\");\nexpect(obj).toHaveProperty(\"key\", value);\nexpect(obj).toMatchObject({ a: 1 });\n\n\u002F\u002F Exceptions\nexpect(() => fn()).toThrow();\nexpect(() => fn()).toThrow(\"message\");\nexpect(() => fn()).toThrow(CustomError);\n\n\u002F\u002F Async\nawait expect(promise).resolves.toBe(value);\nawait expect(promise).rejects.toThrow();\n\n\u002F\u002F Negation\nexpect(value).not.toBe(5);\n```\n\n## CLI Options\n\n```bash\n# Timeout per test (default 5000ms)\nbun test --timeout 20\n\n# Bail after N failures\nbun test --bail\nbun test --bail=10\n\n# Watch mode\nbun test --watch\n\n# Random order\nbun test --randomize\nbun test --seed 12345\n\n# Concurrent execution\nbun test --concurrent\nbun test --concurrent --max-concurrency 4\n\n# Filter by name\nbun test -t \"pattern\"\n```\n\n## Output Reporters\n\n```bash\n# Dots (compact)\nbun test --dots\n\n# JUnit XML (CI\u002FCD)\nbun test --reporter=junit --reporter-outfile=.\u002Fresults.xml\n```\n\n## Common Errors\n\n| Error | Cause | Fix |\n|-------|-------|-----|\n| `Test timeout` | Test exceeds 5s | Use `--timeout` or optimize |\n| `No tests found` | Wrong file pattern | Check file naming |\n| `expect is not defined` | Missing import | Import from `bun:test` |\n| `Assertion failed` | Test failure | Check expected vs actual |\n\n## When to Load References\n\nLoad `references\u002Fmatchers.md` when:\n- Need complete matcher reference\n- Custom matcher patterns\n\nLoad `references\u002Fcli-options.md` when:\n- Full CLI flag reference\n- Advanced execution options\n",{"name":5,"license":15,"metadata":24,"description":7},{"version":25},"1.0.0","main","c475fc64e94e803b50d14a791dfee8853fbb2c5c","integrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fbun\u002Fskills\u002Fbun-test-basics","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory","https:\u002F\u002Fgithub.com\u002FElogic360","2026-11-08 22:21:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Elogic360\u002Fsoftware-factory --skill bun-test-basics",{"tool":38,"command":39},"bunx","bunx skills add Elogic360\u002Fsoftware-factory --skill bun-test-basics",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Elogic360\u002Fsoftware-factory --skill bun-test-basics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fbun\u002Fskills\u002Fbun-test-basics\u002FSKILL.md",true,[],[47,55,62,69,76,83],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M79G206MT3J6S0GY3C45P2KV","vss-summarize-video","Use to summarize a recorded video via the LVS summarization microservice (HITL-gated) with a VLM fallback. Not for report generation or live RTSP captioning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-summarize-video\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":51,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M79G1WN63PGRE8CKD47WEBQ5","vss-setup-video-analytics-api","Use to deploy the vss-video-analytics-api REST service standalone (config-source, data-log bind, Elasticsearch, optional Kafka). Not for full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-video-analytics-api\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":51,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M79G1S9F7VY3EF6H53PRP5AN","vss-setup-behavior-analytics","Use to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration). Not for the full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-behavior-analytics\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":51,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79G1N1S1Y27PFZPYMNK1MTQ","vss-search-archive","Use this skill to run top-level VSS fusion search on archived video, or to ingest video files \u002F RTSP streams for search. Do NOT use for ad-hoc visual Q&A (use vss-ask-video), live captioning (use vss-deploy-dense-captioning), or video summarization and reports (use vss-summarize-video).","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-search-archive\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":51,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M79G1H6WN0Q6C0VCAXCZX6B7","vss-query-analytics","Use this skill when reading video-analytics metrics, incidents, alerts, and sensor data via the VA-MCP server (port 9901). Not for live VLM or incident-range narrative reports.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-query-analytics\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":51,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M79G1DYPNXQS7QHZ0AAF5FX5","vss-manage-video-io-storage","Use to call the VIOS REST API (sensor list, timelines, clip extraction, snapshots, add\u002Fdelete sensors and streams). Not for VLM inference or search.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-manage-video-io-storage\u002FSKILL.md",[],[]]