[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79AB7HS6J3HCY239DSMHVEP":3,"skill-same:01M79AB7HS6J3HCY239DSMHVEP":45},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M79AB7HS6J3HCY239DSMHVEP","jest-generator",null,"Generate Jest unit tests for JavaScript\u002FTypeScript with mocking, coverage. Use for JS\u002FTS modules, React components, test generation, or encountering missing coverage, improper mocking, test structure errors.","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\u002Fjest-generator\u002Fskills\u002Fjest-generator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: jest-generator\ndescription: Generate Jest unit tests for JavaScript\u002FTypeScript with mocking, coverage. Use for JS\u002FTS modules, React components, test generation, or encountering missing coverage, improper mocking, test structure errors.\nallowed-tools: Read, Write, Edit, Bash, Grep, Glob\nlicense: MIT\n---\n\n# Jest Generator Skill\n\n## Purpose\n\nGenerate Jest-based unit tests for JavaScript and TypeScript code, following Jest conventions and best practices with proper mocking, describe blocks, and code organization.\n\n## When to Use\n\n- Generate Jest tests for JavaScript\u002FTypeScript modules\n- Create test files for React components\n- Add missing test coverage to existing code\n- Need Jest-specific patterns (mocks, spies, snapshots)\n\n## Test File Naming\n\n**Source to Test Mapping:**\n- `src\u002Fcomponents\u002FFeature.tsx` → `src\u002Fcomponents\u002FFeature.test.tsx`\n- `src\u002Futils\u002Fvalidator.ts` → `src\u002Futils\u002Fvalidator.test.ts`\n- `src\u002Fmodels\u002FUser.ts` → `src\u002Fmodels\u002FUser.test.ts`\n\n## Running Tests\n\n```bash\n# Preferred: Using bun (faster)\nbun test\n\n# Run specific file\nbun test src\u002Futils\u002Fvalidator.test.ts\n\n# Run with coverage\nbun test --coverage\n\n# Watch mode\nbun test --watch\n\n# Alternative: Using npm\nnpm test\nnpm test -- --coverage\n```\n\n## Jest Test Structure\n\n```typescript\nimport { functionToTest, ClassToTest } from '.\u002FFeature'\n\njest.mock('.\u002Fdependency')\n\ndescribe('ModuleName', () => {\n  beforeEach(() => {\n    jest.clearAllMocks()\n  })\n\n  afterEach(() => {\n    jest.restoreAllMocks()\n  })\n\n  describe('ClassName', () => {\n    let instance: ClassToTest\n\n    beforeEach(() => {\n      instance = new ClassToTest()\n    })\n\n    it('should return expected result with valid input', () => {\n      \u002F\u002F Arrange\n      const input = { key: 'value' }\n      const expected = { processed: true }\n\n      \u002F\u002F Act\n      const result = instance.method(input)\n\n      \u002F\u002F Assert\n      expect(result).toEqual(expected)\n    })\n\n    it('should throw error with invalid input', () => {\n      expect(() => instance.method(null)).toThrow('Invalid input')\n    })\n  })\n})\n```\n\n## Jest-Specific Patterns\n\n### Mocking\n\n```typescript\n\u002F\u002F Mock entire module\njest.mock('.\u002Fapi', () => ({\n  fetchData: jest.fn(),\n}))\n\n\u002F\u002F Mock with implementation\nconst mockFn = jest.fn((x: number) => x * 2)\n\n\u002F\u002F Spy on method\nconst spy = jest.spyOn(obj, 'method').mockReturnValue('mocked')\nspy.mockRestore()\n```\n\n### Async Testing\n\n```typescript\nit('should resolve with data', async () => {\n  const result = await asyncFunction()\n  expect(result).toBeDefined()\n})\n\nit('should reject with error', async () => {\n  await expect(asyncFunction()).rejects.toThrow('Error')\n})\n```\n\n### Timers\n\n```typescript\nbeforeEach(() => jest.useFakeTimers())\nafterEach(() => jest.useRealTimers())\n\nit('should execute after timeout', () => {\n  const callback = jest.fn()\n  setTimeout(callback, 1000)\n  jest.advanceTimersByTime(1000)\n  expect(callback).toHaveBeenCalled()\n})\n```\n\n### Common Matchers\n\n```typescript\n\u002F\u002F Equality\nexpect(value).toBe(expected)\nexpect(value).toEqual(expected)\n\n\u002F\u002F Truthiness\nexpect(value).toBeTruthy()\nexpect(value).toBeNull()\nexpect(value).toBeDefined()\n\n\u002F\u002F Arrays\u002FObjects\nexpect(array).toContain(item)\nexpect(obj).toHaveProperty('key')\n\n\u002F\u002F Functions\u002FPromises\nexpect(fn).toThrow('error')\nawait expect(promise).resolves.toBe(value)\n\n\u002F\u002F Mock functions\nexpect(mockFn).toHaveBeenCalled()\nexpect(mockFn).toHaveBeenCalledWith(arg)\n```\n\n### React Component Testing\n\n```typescript\nimport { render, screen, fireEvent } from '@testing-library\u002Freact'\nimport '@testing-library\u002Fjest-dom'\nimport { Button } from '.\u002FButton'\n\ndescribe('Button', () => {\n  it('should call onClick when clicked', () => {\n    const handleClick = jest.fn()\n    render(\u003CButton onClick={handleClick}>Click me\u003C\u002FButton>)\n    fireEvent.click(screen.getByText('Click me'))\n    expect(handleClick).toHaveBeenCalledTimes(1)\n  })\n})\n```\n\n## Quality Checklist\n\n- [ ] Test file properly named (`\u003Cmodule>.test.ts`)\n- [ ] All exported functions\u002Fclasses tested\n- [ ] Happy path and edge cases included\n- [ ] Error conditions tested\n- [ ] External dependencies mocked\n- [ ] Tests organized with describe blocks\n- [ ] beforeEach\u002FafterEach for setup\u002Fcleanup\n- [ ] Descriptive test names\n- [ ] Coverage ≥ 80%\n\n## Best Practices\n\n1. Use descriptive test names: `should \u003Cexpected> when \u003Ccondition>`\n2. Organize with describe blocks\n3. Mock external dependencies only\n4. Test user behavior for components\n5. Use test.each for parametrized tests\n6. Keep tests independent\n7. Test error conditions\n8. Aim for 80%+ coverage\n","# Jest Generator Skill\n\n## Purpose\n\nGenerate Jest-based unit tests for JavaScript and TypeScript code, following Jest conventions and best practices with proper mocking, describe blocks, and code organization.\n\n## When to Use\n\n- Generate Jest tests for JavaScript\u002FTypeScript modules\n- Create test files for React components\n- Add missing test coverage to existing code\n- Need Jest-specific patterns (mocks, spies, snapshots)\n\n## Test File Naming\n\n**Source to Test Mapping:**\n- `src\u002Fcomponents\u002FFeature.tsx` → `src\u002Fcomponents\u002FFeature.test.tsx`\n- `src\u002Futils\u002Fvalidator.ts` → `src\u002Futils\u002Fvalidator.test.ts`\n- `src\u002Fmodels\u002FUser.ts` → `src\u002Fmodels\u002FUser.test.ts`\n\n## Running Tests\n\n```bash\n# Preferred: Using bun (faster)\nbun test\n\n# Run specific file\nbun test src\u002Futils\u002Fvalidator.test.ts\n\n# Run with coverage\nbun test --coverage\n\n# Watch mode\nbun test --watch\n\n# Alternative: Using npm\nnpm test\nnpm test -- --coverage\n```\n\n## Jest Test Structure\n\n```typescript\nimport { functionToTest, ClassToTest } from '.\u002FFeature'\n\njest.mock('.\u002Fdependency')\n\ndescribe('ModuleName', () => {\n  beforeEach(() => {\n    jest.clearAllMocks()\n  })\n\n  afterEach(() => {\n    jest.restoreAllMocks()\n  })\n\n  describe('ClassName', () => {\n    let instance: ClassToTest\n\n    beforeEach(() => {\n      instance = new ClassToTest()\n    })\n\n    it('should return expected result with valid input', () => {\n      \u002F\u002F Arrange\n      const input = { key: 'value' }\n      const expected = { processed: true }\n\n      \u002F\u002F Act\n      const result = instance.method(input)\n\n      \u002F\u002F Assert\n      expect(result).toEqual(expected)\n    })\n\n    it('should throw error with invalid input', () => {\n      expect(() => instance.method(null)).toThrow('Invalid input')\n    })\n  })\n})\n```\n\n## Jest-Specific Patterns\n\n### Mocking\n\n```typescript\n\u002F\u002F Mock entire module\njest.mock('.\u002Fapi', () => ({\n  fetchData: jest.fn(),\n}))\n\n\u002F\u002F Mock with implementation\nconst mockFn = jest.fn((x: number) => x * 2)\n\n\u002F\u002F Spy on method\nconst spy = jest.spyOn(obj, 'method').mockReturnValue('mocked')\nspy.mockRestore()\n```\n\n### Async Testing\n\n```typescript\nit('should resolve with data', async () => {\n  const result = await asyncFunction()\n  expect(result).toBeDefined()\n})\n\nit('should reject with error', async () => {\n  await expect(asyncFunction()).rejects.toThrow('Error')\n})\n```\n\n### Timers\n\n```typescript\nbeforeEach(() => jest.useFakeTimers())\nafterEach(() => jest.useRealTimers())\n\nit('should execute after timeout', () => {\n  const callback = jest.fn()\n  setTimeout(callback, 1000)\n  jest.advanceTimersByTime(1000)\n  expect(callback).toHaveBeenCalled()\n})\n```\n\n### Common Matchers\n\n```typescript\n\u002F\u002F Equality\nexpect(value).toBe(expected)\nexpect(value).toEqual(expected)\n\n\u002F\u002F Truthiness\nexpect(value).toBeTruthy()\nexpect(value).toBeNull()\nexpect(value).toBeDefined()\n\n\u002F\u002F Arrays\u002FObjects\nexpect(array).toContain(item)\nexpect(obj).toHaveProperty('key')\n\n\u002F\u002F Functions\u002FPromises\nexpect(fn).toThrow('error')\nawait expect(promise).resolves.toBe(value)\n\n\u002F\u002F Mock functions\nexpect(mockFn).toHaveBeenCalled()\nexpect(mockFn).toHaveBeenCalledWith(arg)\n```\n\n### React Component Testing\n\n```typescript\nimport { render, screen, fireEvent } from '@testing-library\u002Freact'\nimport '@testing-library\u002Fjest-dom'\nimport { Button } from '.\u002FButton'\n\ndescribe('Button', () => {\n  it('should call onClick when clicked', () => {\n    const handleClick = jest.fn()\n    render(\u003CButton onClick={handleClick}>Click me\u003C\u002FButton>)\n    fireEvent.click(screen.getByText('Click me'))\n    expect(handleClick).toHaveBeenCalledTimes(1)\n  })\n})\n```\n\n## Quality Checklist\n\n- [ ] Test file properly named (`\u003Cmodule>.test.ts`)\n- [ ] All exported functions\u002Fclasses tested\n- [ ] Happy path and edge cases included\n- [ ] Error conditions tested\n- [ ] External dependencies mocked\n- [ ] Tests organized with describe blocks\n- [ ] beforeEach\u002FafterEach for setup\u002Fcleanup\n- [ ] Descriptive test names\n- [ ] Coverage ≥ 80%\n\n## Best Practices\n\n1. Use descriptive test names: `should \u003Cexpected> when \u003Ccondition>`\n2. Organize with describe blocks\n3. Mock external dependencies only\n4. Test user behavior for components\n5. Use test.each for parametrized tests\n6. Keep tests independent\n7. Test error conditions\n8. Aim for 80%+ coverage\n",{"name":5,"license":15,"description":7,"allowed-tools":24},"Read, Write, Edit, Bash, Grep, Glob","main","c475fc64e94e803b50d14a791dfee8853fbb2c5c","integrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fjest-generator\u002Fskills\u002Fjest-generator","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory","https:\u002F\u002Fgithub.com\u002FElogic360","2026-11-08 22:21:22",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Elogic360\u002Fsoftware-factory --skill jest-generator",{"tool":37,"command":38},"bunx","bunx skills add Elogic360\u002Fsoftware-factory --skill jest-generator",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Elogic360\u002Fsoftware-factory --skill jest-generator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fjest-generator\u002Fskills\u002Fjest-generator\u002FSKILL.md",true,[],[46,54,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"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":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"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":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"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":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":50,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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",[],[]]