[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DA14VAM8X90QA1ZW299MW9":3,"skill-same:01M7DA14VAM8X90QA1ZW299MW9":74},{"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":52,"commitSha":53,"skillDirectory":54,"forksCount":14,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M7DA14VAM8X90QA1ZW299MW9","Vitest Testing",null,"Modern JavaScript and TypeScript testing with Vitest, covering unit testing, integration testing, mocking, snapshots, browser mode, and Vite integration.","GrupoANDevelopment-m\u002Falberto-ai","GrupoANDevelopment-m","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F257455179?v=4","01M7D69X2N2KEVN0SJF6WGM6SH","Antônio  Ndombe","01M7D69X3P5JTT8H8S904N3888",0,"MIT","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fvitest\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: Vitest Testing\ndescription: Modern JavaScript and TypeScript testing with Vitest, covering unit testing, integration testing, mocking, snapshots, browser mode, and Vite integration.\nversion: 1.0.0\nauthor: thetestingacademy\nlicense: MIT\ntags: [vitest, unit-testing, vite, typescript, javascript, mocking, snapshots]\ntestingTypes: [unit, integration]\nframeworks: []\nlanguages: [typescript, javascript]\ndomains: [web]\nagents: [claude-code, cursor, github-copilot, windsurf, codex, aider, continue, cline, zed, bolt]\n---\n\n# Vitest Testing Skill\n\nYou are an expert software engineer specializing in testing with Vitest. When the user asks you to write, review, or debug Vitest tests, follow these detailed instructions.\n\n## Core Principles\n\n1. **Blazing fast** -- Vitest is designed for speed with native ESM support and smart test running.\n2. **Vite-native** -- Leverages Vite's config, transformers, and plugins for seamless integration.\n3. **Jest-compatible API** -- Familiar API makes migration from Jest straightforward.\n4. **Watch mode first** -- Vitest excels at watch mode with instant feedback.\n5. **Test isolation** -- Each test should be independent and deterministic.\n\n## Project Structure\n\n```\nproject\u002F\n  src\u002F\n    components\u002F\n      Button.tsx\n      Button.test.tsx\n    services\u002F\n      user.service.ts\n      user.service.test.ts\n    utils\u002F\n      validators.ts\n      validators.test.ts\n  tests\u002F\n    integration\u002F\n      api.test.ts\n      db.test.ts\n    fixtures\u002F\n      test-data.ts\n    setup.ts\n  vitest.config.ts\n  vite.config.ts\n```\n\n## Configuration\n\n### Basic Config\n\n```typescript\n\u002F\u002F vitest.config.ts\nimport { defineConfig } from 'vitest\u002Fconfig';\nimport react from '@vitejs\u002Fplugin-react';\n\nexport default defineConfig({\n  plugins: [react()],\n  test: {\n    globals: true,\n    environment: 'jsdom',\n    setupFiles: '.\u002Ftests\u002Fsetup.ts',\n    coverage: {\n      provider: 'v8',\n      reporter: ['text', 'json', 'html'],\n      exclude: [\n        'node_modules\u002F',\n        'tests\u002F',\n        '**\u002F*.test.ts',\n        '**\u002F*.spec.ts',\n        '**\u002Ftypes\u002F',\n      ],\n      thresholds: {\n        lines: 80,\n        functions: 80,\n        branches: 80,\n        statements: 80,\n      },\n    },\n    include: ['**\u002F*.{test,spec}.{ts,tsx}'],\n    exclude: ['node_modules', 'dist', 'build'],\n    testTimeout: 10000,\n    hookTimeout: 10000,\n  },\n});\n```\n\n### Advanced Config with Multiple Environments\n\n```typescript\n\u002F\u002F vitest.config.ts\nimport { defineConfig } from 'vitest\u002Fconfig';\n\nexport default defineConfig({\n  test: {\n    globals: true,\n    environment: 'node',\n    environmentMatchGlobs: [\n      ['**\u002F*.test.tsx', 'jsdom'],\n      ['**\u002F*.browser.test.ts', 'jsdom'],\n      ['**\u002F*.node.test.ts', 'node'],\n      ['**\u002F*.edge.test.ts', 'edge-runtime'],\n    ],\n    poolOptions: {\n      threads: {\n        singleThread: false,\n        isolate: true,\n      },\n    },\n    coverage: {\n      provider: 'v8',\n      include: ['src\u002F**\u002F*.{ts,tsx}'],\n    },\n    benchmark: {\n      include: ['**\u002F*.bench.{ts,tsx}'],\n    },\n  },\n});\n```\n\n## Writing Tests\n\n### Basic Test Structure\n\n```typescript\nimport { describe, it, expect, beforeEach, afterEach } from 'vitest';\nimport { sum, multiply } from '.\u002Fmath';\n\ndescribe('Math utilities', () => {\n  it('should add two numbers', () => {\n    expect(sum(2, 3)).toBe(5);\n  });\n\n  it('should multiply two numbers', () => {\n    expect(multiply(4, 5)).toBe(20);\n  });\n\n  it('should handle zero', () => {\n    expect(sum(0, 0)).toBe(0);\n    expect(multiply(5, 0)).toBe(0);\n  });\n\n  it('should handle negative numbers', () => {\n    expect(sum(-1, 1)).toBe(0);\n    expect(multiply(-2, 3)).toBe(-6);\n  });\n});\n```\n\n### Testing Classes and Services\n\n```typescript\n\u002F\u002F user.service.ts\nexport class UserService {\n  constructor(\n    private apiClient: ApiClient,\n    private cache: Cache\n  ) {}\n\n  async getUser(id: string): Promise\u003CUser> {\n    const cached = await this.cache.get(`user:${id}`);\n    if (cached) return JSON.parse(cached);\n\n    const user = await this.apiClient.get(`\u002Fusers\u002F${id}`);\n    await this.cache.set(`user:${id}`, JSON.stringify(user), 3600);\n    return user;\n  }\n\n  async createUser(data: CreateUserDto): Promise\u003CUser> {\n    return this.apiClient.post('\u002Fusers', data);\n  }\n}\n```\n\n```typescript\n\u002F\u002F user.service.test.ts\nimport { describe, it, expect, vi, beforeEach } from 'vitest';\nimport { UserService } from '.\u002Fuser.service';\n\ndescribe('UserService', () => {\n  let userService: UserService;\n  let mockApiClient: any;\n  let mockCache: any;\n\n  beforeEach(() => {\n    mockApiClient = {\n      get: vi.fn(),\n      post: vi.fn(),\n    };\n\n    mockCache = {\n      get: vi.fn(),\n      set: vi.fn(),\n    };\n\n    userService = new UserService(mockApiClient, mockCache);\n  });\n\n  describe('getUser', () => {\n    it('should return cached user if available', async () => {\n      const cachedUser = { id: '1', name: 'Cached User' };\n      mockCache.get.mockResolvedValue(JSON.stringify(cachedUser));\n\n      const result = await userService.getUser('1');\n\n      expect(result).toEqual(cachedUser);\n      expect(mockCache.get).toHaveBeenCalledWith('user:1');\n      expect(mockApiClient.get).not.toHaveBeenCalled();\n    });\n\n    it('should fetch user from API if not cached', async () => {\n      const user = { id: '1', name: 'API User' };\n      mockCache.get.mockResolvedValue(null);\n      mockApiClient.get.mockResolvedValue(user);\n\n      const result = await userService.getUser('1');\n\n      expect(result).toEqual(user);\n      expect(mockApiClient.get).toHaveBeenCalledWith('\u002Fusers\u002F1');\n      expect(mockCache.set).toHaveBeenCalledWith(\n        'user:1',\n        JSON.stringify(user),\n        3600\n      );\n    });\n  });\n\n  describe('createUser', () => {\n    it('should create a new user', async () => {\n      const newUser = { id: '2', name: 'New User', email: 'new@example.com' };\n      mockApiClient.post.mockResolvedValue(newUser);\n\n      const result = await userService.createUser({\n        name: 'New User',\n        email: 'new@example.com',\n      });\n\n      expect(result).toEqual(newUser);\n      expect(mockApiClient.post).toHaveBeenCalledWith('\u002Fusers', {\n        name: 'New User',\n        email: 'new@example.com',\n      });\n    });\n  });\n});\n```\n\n## Mocking Patterns\n\n### Function Mocking\n\n```typescript\nimport { vi, describe, it, expect } from 'vitest';\n\ndescribe('Function mocking', () => {\n  it('should mock a function', () => {\n    const mockFn = vi.fn();\n    mockFn.mockReturnValue(42);\n\n    expect(mockFn()).toBe(42);\n    expect(mockFn).toHaveBeenCalledOnce();\n  });\n\n  it('should mock implementation', () => {\n    const mockFn = vi.fn((x: number) => x * 2);\n\n    expect(mockFn(5)).toBe(10);\n    expect(mockFn).toHaveBeenCalledWith(5);\n  });\n\n  it('should mock resolved value', async () => {\n    const mockFn = vi.fn();\n    mockFn.mockResolvedValue({ id: 1, name: 'Test' });\n\n    const result = await mockFn();\n    expect(result).toEqual({ id: 1, name: 'Test' });\n  });\n\n  it('should mock rejected value', async () => {\n    const mockFn = vi.fn();\n    mockFn.mockRejectedValue(new Error('Failed'));\n\n    await expect(mockFn()).rejects.toThrow('Failed');\n  });\n});\n```\n\n### Module Mocking\n\n```typescript\n\u002F\u002F __mocks__\u002Faxios.ts\nimport { vi } from 'vitest';\n\nexport default {\n  get: vi.fn(),\n  post: vi.fn(),\n  put: vi.fn(),\n  delete: vi.fn(),\n  create: vi.fn(() => ({\n    get: vi.fn(),\n    post: vi.fn(),\n  })),\n};\n```\n\n```typescript\n\u002F\u002F api.test.ts\nimport { describe, it, expect, vi } from 'vitest';\n\nvi.mock('axios');\n\nimport axios from 'axios';\nimport { fetchUser } from '.\u002Fapi';\n\ndescribe('API', () => {\n  it('should fetch user data', async () => {\n    const mockUser = { id: 1, name: 'Test User' };\n    vi.mocked(axios.get).mockResolvedValue({ data: mockUser });\n\n    const user = await fetchUser('1');\n\n    expect(user).toEqual(mockUser);\n    expect(axios.get).toHaveBeenCalledWith('\u002Fapi\u002Fusers\u002F1');\n  });\n});\n```\n\n### Partial Module Mocking\n\n```typescript\nimport { vi } from 'vitest';\n\n\u002F\u002F Mock only specific exports\nvi.mock('.\u002Futils', async () => {\n  const actual = await vi.importActual('.\u002Futils');\n  return {\n    ...actual,\n    fetchData: vi.fn(),\n  };\n});\n```\n\n### Spying\n\n```typescript\nimport { vi, describe, it, expect } from 'vitest';\n\ndescribe('Spying', () => {\n  it('should spy on console.error', () => {\n    const spy = vi.spyOn(console, 'error').mockImplementation(() => {});\n\n    console.error('Test error');\n\n    expect(spy).toHaveBeenCalledWith('Test error');\n    spy.mockRestore();\n  });\n\n  it('should spy on object method', () => {\n    const obj = {\n      method: (x: number) => x * 2,\n    };\n\n    const spy = vi.spyOn(obj, 'method');\n    obj.method(5);\n\n    expect(spy).toHaveBeenCalledWith(5);\n    expect(spy).toHaveReturnedWith(10);\n  });\n});\n```\n\n## Timer Mocking\n\n```typescript\nimport { vi, describe, it, expect, beforeEach, afterEach } from 'vitest';\n\ndescribe('Timer tests', () => {\n  beforeEach(() => {\n    vi.useFakeTimers();\n  });\n\n  afterEach(() => {\n    vi.restoreAllMocks();\n  });\n\n  it('should debounce function calls', () => {\n    const fn = vi.fn();\n    const debounced = debounce(fn, 300);\n\n    debounced();\n    debounced();\n    debounced();\n\n    expect(fn).not.toHaveBeenCalled();\n\n    vi.advanceTimersByTime(300);\n\n    expect(fn).toHaveBeenCalledOnce();\n  });\n\n  it('should throttle function calls', () => {\n    const fn = vi.fn();\n    const throttled = throttle(fn, 100);\n\n    throttled();\n    expect(fn).toHaveBeenCalledOnce();\n\n    throttled();\n    expect(fn).toHaveBeenCalledOnce(); \u002F\u002F still once\n\n    vi.advanceTimersByTime(100);\n    throttled();\n    expect(fn).toHaveBeenCalledTimes(2);\n  });\n\n  it('should handle setTimeout', () => {\n    const callback = vi.fn();\n    setTimeout(callback, 1000);\n\n    expect(callback).not.toHaveBeenCalled();\n\n    vi.advanceTimersByTime(1000);\n\n    expect(callback).toHaveBeenCalledOnce();\n  });\n});\n```\n\n## Snapshot Testing\n\n```typescript\nimport { describe, it, expect } from 'vitest';\n\ndescribe('Snapshot tests', () => {\n  it('should match snapshot', () => {\n    const data = {\n      id: 1,\n      name: 'Test User',\n      roles: ['admin', 'user'],\n      createdAt: new Date('2024-01-01'),\n    };\n\n    expect(data).toMatchSnapshot();\n  });\n\n  it('should match inline snapshot', () => {\n    const formatted = formatUserName({ first: 'John', last: 'Doe' });\n\n    expect(formatted).toMatchInlineSnapshot(`\"John Doe\"`);\n  });\n\n  it('should match file snapshot', () => {\n    const html = renderComponent({ title: 'Test', count: 5 });\n    expect(html).toMatchFileSnapshot('.\u002F__snapshots__\u002Fcomponent.html');\n  });\n});\n```\n\n## Testing React Components\n\n```typescript\nimport { describe, it, expect } from 'vitest';\nimport { render, screen, fireEvent } from '@testing-library\u002Freact';\nimport { Button } from '.\u002FButton';\n\ndescribe('Button component', () => {\n  it('should render with text', () => {\n    render(\u003CButton>Click me\u003C\u002FButton>);\n    expect(screen.getByText('Click me')).toBeInTheDocument();\n  });\n\n  it('should handle click events', () => {\n    const onClick = vi.fn();\n    render(\u003CButton onClick={onClick}>Click me\u003C\u002FButton>);\n\n    fireEvent.click(screen.getByText('Click me'));\n\n    expect(onClick).toHaveBeenCalledOnce();\n  });\n\n  it('should be disabled when disabled prop is true', () => {\n    render(\u003CButton disabled>Click me\u003C\u002FButton>);\n    expect(screen.getByRole('button')).toBeDisabled();\n  });\n\n  it('should apply variant classes', () => {\n    render(\u003CButton variant=\"primary\">Primary\u003C\u002FButton>);\n    expect(screen.getByRole('button')).toHaveClass('btn-primary');\n  });\n});\n```\n\n## Async Testing\n\n```typescript\nimport { describe, it, expect } from 'vitest';\n\ndescribe('Async tests', () => {\n  it('should handle async\u002Fawait', async () => {\n    const result = await fetchData();\n    expect(result.status).toBe('success');\n  });\n\n  it('should handle promises with resolves', async () => {\n    await expect(fetchUser('1')).resolves.toEqual({\n      id: '1',\n      name: 'Test User',\n    });\n  });\n\n  it('should handle promise rejections', async () => {\n    await expect(fetchUser('invalid')).rejects.toThrow('User not found');\n  });\n\n  it('should test multiple async operations', async () => {\n    const [user, posts] = await Promise.all([\n      fetchUser('1'),\n      fetchPosts('1'),\n    ]);\n\n    expect(user.id).toBe('1');\n    expect(posts).toHaveLength(5);\n  });\n});\n```\n\n## Testing with Context and Fixtures\n\n```typescript\nimport { describe, it, expect, beforeEach } from 'vitest';\n\ndescribe('User operations', () => {\n  let testUser: User;\n\n  beforeEach\u003C{ user: User }>(async (context) => {\n    \u002F\u002F Setup runs before each test\n    testUser = await createTestUser();\n    context.user = testUser;\n  });\n\n  it\u003C{ user: User }>('should update user name', async ({ user }) => {\n    await updateUserName(user.id, 'New Name');\n    const updated = await getUser(user.id);\n    expect(updated.name).toBe('New Name');\n  });\n\n  it\u003C{ user: User }>('should delete user', async ({ user }) => {\n    await deleteUser(user.id);\n    await expect(getUser(user.id)).rejects.toThrow('Not found');\n  });\n});\n```\n\n## Browser Mode (Experimental)\n\n```typescript\n\u002F\u002F vitest.config.ts\nexport default defineConfig({\n  test: {\n    browser: {\n      enabled: true,\n      name: 'chromium',\n      provider: 'playwright',\n      headless: true,\n    },\n  },\n});\n```\n\n```typescript\n\u002F\u002F button.browser.test.ts\nimport { describe, it, expect } from 'vitest';\nimport { page } from '@vitest\u002Fbrowser\u002Fcontext';\n\ndescribe('Button in real browser', () => {\n  it('should interact with button', async () => {\n    await page.goto('\u002Fbutton-demo');\n\n    const button = await page.locator('button');\n    await button.click();\n\n    const counter = await page.locator('#counter');\n    await expect(counter).toHaveText('1');\n  });\n});\n```\n\n## Best Practices\n\n1. **Use globals or imports** -- Choose between `globals: true` or explicit imports.\n2. **Co-locate tests** -- Keep `*.test.ts` files next to source files for quick access.\n3. **Use beforeEach for setup** -- Ensure each test starts with clean state.\n4. **Leverage watch mode** -- Vitest's watch mode is incredibly fast and smart.\n5. **Use vi.mock at top level** -- Hoisting ensures mocks are ready before imports.\n6. **Test behavior, not implementation** -- Focus on what functions do, not how.\n7. **Use descriptive test names** -- Tests should read like specifications.\n8. **Keep tests isolated** -- No shared mutable state between tests.\n9. **Use coverage wisely** -- Aim for high coverage but don't chase 100%.\n10. **Prefer integration over unit** -- Test realistic user flows when possible.\n\n## Anti-Patterns to Avoid\n\n1. **Mocking everything** -- Over-mocking tests nothing real.\n2. **Testing implementation details** -- Tests should survive refactoring.\n3. **Shared mutable state** -- Use beforeEach to reset state.\n4. **Giant test files** -- Split by feature or component.\n5. **No test isolation** -- Tests should run in any order.\n6. **Hardcoded waits** -- Use proper async patterns instead of delays.\n7. **Snapshot abuse** -- Don't snapshot large objects without reason.\n8. **Testing framework code** -- Don't test that Array.map works.\n9. **Ignoring test failures** -- Never commit with `test.skip` or `.only`.\n10. **Not cleaning up** -- Use afterEach or cleanup functions.\n\n## Running Tests\n\n```bash\n# Run all tests\nvitest\n\n# Run in watch mode (default)\nvitest watch\n\n# Run once (CI mode)\nvitest run\n\n# Run specific file\nvitest run src\u002Futils\u002Fvalidators.test.ts\n\n# Run with UI\nvitest --ui\n\n# Run with coverage\nvitest --coverage\n\n# Run tests matching pattern\nvitest --reporter=verbose --grep=\"user\"\n\n# Run in browser mode\nvitest --browser\n\n# Run benchmarks\nvitest bench\n```\n\n## Debugging\n\n```typescript\n\u002F\u002F Use test.only to isolate tests\nit.only('should debug this test', () => {\n  \u002F\u002F debugger; \u002F\u002F Breakpoint\n  expect(true).toBe(true);\n});\n\n\u002F\u002F Use console.log for quick debugging\nit('should log values', () => {\n  const value = computeValue();\n  console.log('Computed value:', value);\n  expect(value).toBe(42);\n});\n```\n\n## Custom Matchers\n\n```typescript\n\u002F\u002F tests\u002Fsetup.ts\nimport { expect } from 'vitest';\n\nexpect.extend({\n  toBeWithinRange(received: number, floor: number, ceiling: number) {\n    const pass = received >= floor && received \u003C= ceiling;\n    return {\n      pass,\n      message: () =>\n        `expected ${received} to be within range ${floor} - ${ceiling}`,\n    };\n  },\n});\n\ndeclare module 'vitest' {\n  interface Assertion\u003CT = any> {\n    toBeWithinRange(floor: number, ceiling: number): T;\n  }\n}\n```\n\n## Integration with Vite Plugins\n\nVitest automatically uses your Vite config, including plugins like:\n- `@vitejs\u002Fplugin-react` for React JSX support\n- `vite-tsconfig-paths` for TypeScript path mapping\n- Any custom Vite plugins for asset handling\n\nThis makes Vitest the natural choice for Vite-based projects.\n","# Vitest Testing Skill\n\nYou are an expert software engineer specializing in testing with Vitest. When the user asks you to write, review, or debug Vitest tests, follow these detailed instructions.\n\n## Core Principles\n\n1. **Blazing fast** -- Vitest is designed for speed with native ESM support and smart test running.\n2. **Vite-native** -- Leverages Vite's config, transformers, and plugins for seamless integration.\n3. **Jest-compatible API** -- Familiar API makes migration from Jest straightforward.\n4. **Watch mode first** -- Vitest excels at watch mode with instant feedback.\n5. **Test isolation** -- Each test should be independent and deterministic.\n\n## Project Structure\n\n```\nproject\u002F\n  src\u002F\n    components\u002F\n      Button.tsx\n      Button.test.tsx\n    services\u002F\n      user.service.ts\n      user.service.test.ts\n    utils\u002F\n      validators.ts\n      validators.test.ts\n  tests\u002F\n    integration\u002F\n      api.test.ts\n      db.test.ts\n    fixtures\u002F\n      test-data.ts\n    setup.ts\n  vitest.config.ts\n  vite.config.ts\n```\n\n## Configuration\n\n### Basic Config\n\n```typescript\n\u002F\u002F vitest.config.ts\nimport { defineConfig } from 'vitest\u002Fconfig';\nimport react from '@vitejs\u002Fplugin-react';\n\nexport default defineConfig({\n  plugins: [react()],\n  test: {\n    globals: true,\n    environment: 'jsdom',\n    setupFiles: '.\u002Ftests\u002Fsetup.ts',\n    coverage: {\n      provider: 'v8',\n      reporter: ['text', 'json', 'html'],\n      exclude: [\n        'node_modules\u002F',\n        'tests\u002F',\n        '**\u002F*.test.ts',\n        '**\u002F*.spec.ts',\n        '**\u002Ftypes\u002F',\n      ],\n      thresholds: {\n        lines: 80,\n        functions: 80,\n        branches: 80,\n        statements: 80,\n      },\n    },\n    include: ['**\u002F*.{test,spec}.{ts,tsx}'],\n    exclude: ['node_modules', 'dist', 'build'],\n    testTimeout: 10000,\n    hookTimeout: 10000,\n  },\n});\n```\n\n### Advanced Config with Multiple Environments\n\n```typescript\n\u002F\u002F vitest.config.ts\nimport { defineConfig } from 'vitest\u002Fconfig';\n\nexport default defineConfig({\n  test: {\n    globals: true,\n    environment: 'node',\n    environmentMatchGlobs: [\n      ['**\u002F*.test.tsx', 'jsdom'],\n      ['**\u002F*.browser.test.ts', 'jsdom'],\n      ['**\u002F*.node.test.ts', 'node'],\n      ['**\u002F*.edge.test.ts', 'edge-runtime'],\n    ],\n    poolOptions: {\n      threads: {\n        singleThread: false,\n        isolate: true,\n      },\n    },\n    coverage: {\n      provider: 'v8',\n      include: ['src\u002F**\u002F*.{ts,tsx}'],\n    },\n    benchmark: {\n      include: ['**\u002F*.bench.{ts,tsx}'],\n    },\n  },\n});\n```\n\n## Writing Tests\n\n### Basic Test Structure\n\n```typescript\nimport { describe, it, expect, beforeEach, afterEach } from 'vitest';\nimport { sum, multiply } from '.\u002Fmath';\n\ndescribe('Math utilities', () => {\n  it('should add two numbers', () => {\n    expect(sum(2, 3)).toBe(5);\n  });\n\n  it('should multiply two numbers', () => {\n    expect(multiply(4, 5)).toBe(20);\n  });\n\n  it('should handle zero', () => {\n    expect(sum(0, 0)).toBe(0);\n    expect(multiply(5, 0)).toBe(0);\n  });\n\n  it('should handle negative numbers', () => {\n    expect(sum(-1, 1)).toBe(0);\n    expect(multiply(-2, 3)).toBe(-6);\n  });\n});\n```\n\n### Testing Classes and Services\n\n```typescript\n\u002F\u002F user.service.ts\nexport class UserService {\n  constructor(\n    private apiClient: ApiClient,\n    private cache: Cache\n  ) {}\n\n  async getUser(id: string): Promise\u003CUser> {\n    const cached = await this.cache.get(`user:${id}`);\n    if (cached) return JSON.parse(cached);\n\n    const user = await this.apiClient.get(`\u002Fusers\u002F${id}`);\n    await this.cache.set(`user:${id}`, JSON.stringify(user), 3600);\n    return user;\n  }\n\n  async createUser(data: CreateUserDto): Promise\u003CUser> {\n    return this.apiClient.post('\u002Fusers', data);\n  }\n}\n```\n\n```typescript\n\u002F\u002F user.service.test.ts\nimport { describe, it, expect, vi, beforeEach } from 'vitest';\nimport { UserService } from '.\u002Fuser.service';\n\ndescribe('UserService', () => {\n  let userService: UserService;\n  let mockApiClient: any;\n  let mockCache: any;\n\n  beforeEach(() => {\n    mockApiClient = {\n      get: vi.fn(),\n      post: vi.fn(),\n    };\n\n    mockCache = {\n      get: vi.fn(),\n      set: vi.fn(),\n    };\n\n    userService = new UserService(mockApiClient, mockCache);\n  });\n\n  describe('getUser', () => {\n    it('should return cached user if available', async () => {\n      const cachedUser = { id: '1', name: 'Cached User' };\n      mockCache.get.mockResolvedValue(JSON.stringify(cachedUser));\n\n      const result = await userService.getUser('1');\n\n      expect(result).toEqual(cachedUser);\n      expect(mockCache.get).toHaveBeenCalledWith('user:1');\n      expect(mockApiClient.get).not.toHaveBeenCalled();\n    });\n\n    it('should fetch user from API if not cached', async () => {\n      const user = { id: '1', name: 'API User' };\n      mockCache.get.mockResolvedValue(null);\n      mockApiClient.get.mockResolvedValue(user);\n\n      const result = await userService.getUser('1');\n\n      expect(result).toEqual(user);\n      expect(mockApiClient.get).toHaveBeenCalledWith('\u002Fusers\u002F1');\n      expect(mockCache.set).toHaveBeenCalledWith(\n        'user:1',\n        JSON.stringify(user),\n        3600\n      );\n    });\n  });\n\n  describe('createUser', () => {\n    it('should create a new user', async () => {\n      const newUser = { id: '2', name: 'New User', email: 'new@example.com' };\n      mockApiClient.post.mockResolvedValue(newUser);\n\n      const result = await userService.createUser({\n        name: 'New User',\n        email: 'new@example.com',\n      });\n\n      expect(result).toEqual(newUser);\n      expect(mockApiClient.post).toHaveBeenCalledWith('\u002Fusers', {\n        name: 'New User',\n        email: 'new@example.com',\n      });\n    });\n  });\n});\n```\n\n## Mocking Patterns\n\n### Function Mocking\n\n```typescript\nimport { vi, describe, it, expect } from 'vitest';\n\ndescribe('Function mocking', () => {\n  it('should mock a function', () => {\n    const mockFn = vi.fn();\n    mockFn.mockReturnValue(42);\n\n    expect(mockFn()).toBe(42);\n    expect(mockFn).toHaveBeenCalledOnce();\n  });\n\n  it('should mock implementation', () => {\n    const mockFn = vi.fn((x: number) => x * 2);\n\n    expect(mockFn(5)).toBe(10);\n    expect(mockFn).toHaveBeenCalledWith(5);\n  });\n\n  it('should mock resolved value', async () => {\n    const mockFn = vi.fn();\n    mockFn.mockResolvedValue({ id: 1, name: 'Test' });\n\n    const result = await mockFn();\n    expect(result).toEqual({ id: 1, name: 'Test' });\n  });\n\n  it('should mock rejected value', async () => {\n    const mockFn = vi.fn();\n    mockFn.mockRejectedValue(new Error('Failed'));\n\n    await expect(mockFn()).rejects.toThrow('Failed');\n  });\n});\n```\n\n### Module Mocking\n\n```typescript\n\u002F\u002F __mocks__\u002Faxios.ts\nimport { vi } from 'vitest';\n\nexport default {\n  get: vi.fn(),\n  post: vi.fn(),\n  put: vi.fn(),\n  delete: vi.fn(),\n  create: vi.fn(() => ({\n    get: vi.fn(),\n    post: vi.fn(),\n  })),\n};\n```\n\n```typescript\n\u002F\u002F api.test.ts\nimport { describe, it, expect, vi } from 'vitest';\n\nvi.mock('axios');\n\nimport axios from 'axios';\nimport { fetchUser } from '.\u002Fapi';\n\ndescribe('API', () => {\n  it('should fetch user data', async () => {\n    const mockUser = { id: 1, name: 'Test User' };\n    vi.mocked(axios.get).mockResolvedValue({ data: mockUser });\n\n    const user = await fetchUser('1');\n\n    expect(user).toEqual(mockUser);\n    expect(axios.get).toHaveBeenCalledWith('\u002Fapi\u002Fusers\u002F1');\n  });\n});\n```\n\n### Partial Module Mocking\n\n```typescript\nimport { vi } from 'vitest';\n\n\u002F\u002F Mock only specific exports\nvi.mock('.\u002Futils', async () => {\n  const actual = await vi.importActual('.\u002Futils');\n  return {\n    ...actual,\n    fetchData: vi.fn(),\n  };\n});\n```\n\n### Spying\n\n```typescript\nimport { vi, describe, it, expect } from 'vitest';\n\ndescribe('Spying', () => {\n  it('should spy on console.error', () => {\n    const spy = vi.spyOn(console, 'error').mockImplementation(() => {});\n\n    console.error('Test error');\n\n    expect(spy).toHaveBeenCalledWith('Test error');\n    spy.mockRestore();\n  });\n\n  it('should spy on object method', () => {\n    const obj = {\n      method: (x: number) => x * 2,\n    };\n\n    const spy = vi.spyOn(obj, 'method');\n    obj.method(5);\n\n    expect(spy).toHaveBeenCalledWith(5);\n    expect(spy).toHaveReturnedWith(10);\n  });\n});\n```\n\n## Timer Mocking\n\n```typescript\nimport { vi, describe, it, expect, beforeEach, afterEach } from 'vitest';\n\ndescribe('Timer tests', () => {\n  beforeEach(() => {\n    vi.useFakeTimers();\n  });\n\n  afterEach(() => {\n    vi.restoreAllMocks();\n  });\n\n  it('should debounce function calls', () => {\n    const fn = vi.fn();\n    const debounced = debounce(fn, 300);\n\n    debounced();\n    debounced();\n    debounced();\n\n    expect(fn).not.toHaveBeenCalled();\n\n    vi.advanceTimersByTime(300);\n\n    expect(fn).toHaveBeenCalledOnce();\n  });\n\n  it('should throttle function calls', () => {\n    const fn = vi.fn();\n    const throttled = throttle(fn, 100);\n\n    throttled();\n    expect(fn).toHaveBeenCalledOnce();\n\n    throttled();\n    expect(fn).toHaveBeenCalledOnce(); \u002F\u002F still once\n\n    vi.advanceTimersByTime(100);\n    throttled();\n    expect(fn).toHaveBeenCalledTimes(2);\n  });\n\n  it('should handle setTimeout', () => {\n    const callback = vi.fn();\n    setTimeout(callback, 1000);\n\n    expect(callback).not.toHaveBeenCalled();\n\n    vi.advanceTimersByTime(1000);\n\n    expect(callback).toHaveBeenCalledOnce();\n  });\n});\n```\n\n## Snapshot Testing\n\n```typescript\nimport { describe, it, expect } from 'vitest';\n\ndescribe('Snapshot tests', () => {\n  it('should match snapshot', () => {\n    const data = {\n      id: 1,\n      name: 'Test User',\n      roles: ['admin', 'user'],\n      createdAt: new Date('2024-01-01'),\n    };\n\n    expect(data).toMatchSnapshot();\n  });\n\n  it('should match inline snapshot', () => {\n    const formatted = formatUserName({ first: 'John', last: 'Doe' });\n\n    expect(formatted).toMatchInlineSnapshot(`\"John Doe\"`);\n  });\n\n  it('should match file snapshot', () => {\n    const html = renderComponent({ title: 'Test', count: 5 });\n    expect(html).toMatchFileSnapshot('.\u002F__snapshots__\u002Fcomponent.html');\n  });\n});\n```\n\n## Testing React Components\n\n```typescript\nimport { describe, it, expect } from 'vitest';\nimport { render, screen, fireEvent } from '@testing-library\u002Freact';\nimport { Button } from '.\u002FButton';\n\ndescribe('Button component', () => {\n  it('should render with text', () => {\n    render(\u003CButton>Click me\u003C\u002FButton>);\n    expect(screen.getByText('Click me')).toBeInTheDocument();\n  });\n\n  it('should handle click events', () => {\n    const onClick = vi.fn();\n    render(\u003CButton onClick={onClick}>Click me\u003C\u002FButton>);\n\n    fireEvent.click(screen.getByText('Click me'));\n\n    expect(onClick).toHaveBeenCalledOnce();\n  });\n\n  it('should be disabled when disabled prop is true', () => {\n    render(\u003CButton disabled>Click me\u003C\u002FButton>);\n    expect(screen.getByRole('button')).toBeDisabled();\n  });\n\n  it('should apply variant classes', () => {\n    render(\u003CButton variant=\"primary\">Primary\u003C\u002FButton>);\n    expect(screen.getByRole('button')).toHaveClass('btn-primary');\n  });\n});\n```\n\n## Async Testing\n\n```typescript\nimport { describe, it, expect } from 'vitest';\n\ndescribe('Async tests', () => {\n  it('should handle async\u002Fawait', async () => {\n    const result = await fetchData();\n    expect(result.status).toBe('success');\n  });\n\n  it('should handle promises with resolves', async () => {\n    await expect(fetchUser('1')).resolves.toEqual({\n      id: '1',\n      name: 'Test User',\n    });\n  });\n\n  it('should handle promise rejections', async () => {\n    await expect(fetchUser('invalid')).rejects.toThrow('User not found');\n  });\n\n  it('should test multiple async operations', async () => {\n    const [user, posts] = await Promise.all([\n      fetchUser('1'),\n      fetchPosts('1'),\n    ]);\n\n    expect(user.id).toBe('1');\n    expect(posts).toHaveLength(5);\n  });\n});\n```\n\n## Testing with Context and Fixtures\n\n```typescript\nimport { describe, it, expect, beforeEach } from 'vitest';\n\ndescribe('User operations', () => {\n  let testUser: User;\n\n  beforeEach\u003C{ user: User }>(async (context) => {\n    \u002F\u002F Setup runs before each test\n    testUser = await createTestUser();\n    context.user = testUser;\n  });\n\n  it\u003C{ user: User }>('should update user name', async ({ user }) => {\n    await updateUserName(user.id, 'New Name');\n    const updated = await getUser(user.id);\n    expect(updated.name).toBe('New Name');\n  });\n\n  it\u003C{ user: User }>('should delete user', async ({ user }) => {\n    await deleteUser(user.id);\n    await expect(getUser(user.id)).rejects.toThrow('Not found');\n  });\n});\n```\n\n## Browser Mode (Experimental)\n\n```typescript\n\u002F\u002F vitest.config.ts\nexport default defineConfig({\n  test: {\n    browser: {\n      enabled: true,\n      name: 'chromium',\n      provider: 'playwright',\n      headless: true,\n    },\n  },\n});\n```\n\n```typescript\n\u002F\u002F button.browser.test.ts\nimport { describe, it, expect } from 'vitest';\nimport { page } from '@vitest\u002Fbrowser\u002Fcontext';\n\ndescribe('Button in real browser', () => {\n  it('should interact with button', async () => {\n    await page.goto('\u002Fbutton-demo');\n\n    const button = await page.locator('button');\n    await button.click();\n\n    const counter = await page.locator('#counter');\n    await expect(counter).toHaveText('1');\n  });\n});\n```\n\n## Best Practices\n\n1. **Use globals or imports** -- Choose between `globals: true` or explicit imports.\n2. **Co-locate tests** -- Keep `*.test.ts` files next to source files for quick access.\n3. **Use beforeEach for setup** -- Ensure each test starts with clean state.\n4. **Leverage watch mode** -- Vitest's watch mode is incredibly fast and smart.\n5. **Use vi.mock at top level** -- Hoisting ensures mocks are ready before imports.\n6. **Test behavior, not implementation** -- Focus on what functions do, not how.\n7. **Use descriptive test names** -- Tests should read like specifications.\n8. **Keep tests isolated** -- No shared mutable state between tests.\n9. **Use coverage wisely** -- Aim for high coverage but don't chase 100%.\n10. **Prefer integration over unit** -- Test realistic user flows when possible.\n\n## Anti-Patterns to Avoid\n\n1. **Mocking everything** -- Over-mocking tests nothing real.\n2. **Testing implementation details** -- Tests should survive refactoring.\n3. **Shared mutable state** -- Use beforeEach to reset state.\n4. **Giant test files** -- Split by feature or component.\n5. **No test isolation** -- Tests should run in any order.\n6. **Hardcoded waits** -- Use proper async patterns instead of delays.\n7. **Snapshot abuse** -- Don't snapshot large objects without reason.\n8. **Testing framework code** -- Don't test that Array.map works.\n9. **Ignoring test failures** -- Never commit with `test.skip` or `.only`.\n10. **Not cleaning up** -- Use afterEach or cleanup functions.\n\n## Running Tests\n\n```bash\n# Run all tests\nvitest\n\n# Run in watch mode (default)\nvitest watch\n\n# Run once (CI mode)\nvitest run\n\n# Run specific file\nvitest run src\u002Futils\u002Fvalidators.test.ts\n\n# Run with UI\nvitest --ui\n\n# Run with coverage\nvitest --coverage\n\n# Run tests matching pattern\nvitest --reporter=verbose --grep=\"user\"\n\n# Run in browser mode\nvitest --browser\n\n# Run benchmarks\nvitest bench\n```\n\n## Debugging\n\n```typescript\n\u002F\u002F Use test.only to isolate tests\nit.only('should debug this test', () => {\n  \u002F\u002F debugger; \u002F\u002F Breakpoint\n  expect(true).toBe(true);\n});\n\n\u002F\u002F Use console.log for quick debugging\nit('should log values', () => {\n  const value = computeValue();\n  console.log('Computed value:', value);\n  expect(value).toBe(42);\n});\n```\n\n## Custom Matchers\n\n```typescript\n\u002F\u002F tests\u002Fsetup.ts\nimport { expect } from 'vitest';\n\nexpect.extend({\n  toBeWithinRange(received: number, floor: number, ceiling: number) {\n    const pass = received >= floor && received \u003C= ceiling;\n    return {\n      pass,\n      message: () =>\n        `expected ${received} to be within range ${floor} - ${ceiling}`,\n    };\n  },\n});\n\ndeclare module 'vitest' {\n  interface Assertion\u003CT = any> {\n    toBeWithinRange(floor: number, ceiling: number): T;\n  }\n}\n```\n\n## Integration with Vite Plugins\n\nVitest automatically uses your Vite config, including plugins like:\n- `@vitejs\u002Fplugin-react` for React JSX support\n- `vite-tsconfig-paths` for TypeScript path mapping\n- Any custom Vite plugins for asset handling\n\nThis makes Vitest the natural choice for Vite-based projects.\n",{"name":5,"tags":24,"agents":32,"author":43,"domains":44,"license":15,"version":46,"languages":47,"frameworks":48,"description":7,"testingTypes":49},[25,26,27,28,29,30,31],"vitest","unit-testing","vite","typescript","javascript","mocking","snapshots",[33,34,35,36,37,38,39,40,41,42],"claude-code","cursor","github-copilot","windsurf","codex","aider","continue","cline","zed","bolt","thetestingacademy",[45],"web","1.0.0",[28,29],[],[50,51],"unit","integration","main","eac438ea9216a7cb8a570cab803eb01eeafc6793","skills\u002Fqa\u002Fvitest","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m","https:\u002F\u002Fid-preview--d5bef06d-6c9e-4563-a3d4-a855b9d61610.lovable.app\u002F","Eu sou Antonio B. B. Ndombe \r\nEu sou um Pesquisador e desenvolvedor de sistema autonomia cognitivos, fundador de sistemas ODCs ( organismos digital conscientes)","2026-11-04 06:53:39",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Vitest Testing\"",{"tool":66,"command":67},"bunx","bunx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Vitest Testing\"",{"tool":69,"command":70},"pnpm","pnpm dlx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Vitest Testing\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fvitest\u002FSKILL.md",true,[],[75,83,90,97,104,111],{"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":79,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7DASC6FSCJP49JZBSK0NY1Z","nemoclaw-user-reference","Describes the NemoClaw integration layer and blueprint architecture and how they orchestrate compatible agent sandboxes. Use when looking up architecture, agent integration, plugin structure, or blueprint design. Trigger keywords - nemoclaw architecture, nemoclaw agent architecture, nemoclaw plugin blueprint structure, nemoclaw vs openshell, which cli, nemoclaw cli, openshell cli, sandbox commands, nemoclaw cli commands, nemoclaw command reference, nemoclaw network policy, sandbox egress control operator approval, nemoclaw troubleshooting, nemoclaw debug sandbox issues.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-reference\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":79,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DAS5S79VK33XFGVAM2TFWF","nemoclaw-user-overview","Explains how OpenClaw, OpenShell, and NemoClaw form the ecosystem, NemoClaw's position in the stack, what NemoClaw adds beyond the community sandbox, and when to prefer NemoClaw versus integrating OpenShell and OpenClaw directly. Use when users ask about the relationship between OpenClaw, OpenShell, and NemoClaw, or when to use NemoClaw versus OpenShell. Trigger keywords - nemoclaw ecosystem, openclaw openshell, nemoclaw vs openshell, sandboxed openclaw, how nemoclaw works, nemoclaw sandbox lifecycle blueprint, nemoclaw overview, openclaw always-on assistants, nvidia openshell, nvidia nemotron, nemoclaw release notes, nemoclaw changelog.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-overview\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7DAS0PQEMET5MNGZ1ABSZVS","nemoclaw-user-monitor-sandbox","Inspects sandbox health, traces agent behavior, and diagnoses problems. Use when monitoring a running sandbox, debugging agent issues, or checking sandbox logs. Trigger keywords - monitor nemoclaw sandbox, debug nemoclaw agent issues.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-monitor-sandbox\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7DARQYGF7E9A69VH6S3CGN9","nemoclaw-user-manage-sandboxes","Explains operational tasks after the quickstart: listing sandboxes, status and health checks, logs, diagnostics, port forwards, multiple sandboxes, credential reset, rebuilds, network presets, upgrades, and uninstall. Trigger keywords - manage nemoclaw sandboxes, nemoclaw status, nemoclaw list, nemoclaw dashboard port, nemoclaw rebuild, nemoclaw upgrade sandboxes, nemoclaw uninstall, sandbox mutability, sandbox runtime configuration, sandbox rebuild, nemoclaw backup, nemoclaw restore, workspace backup, openshell sandbox download upload, nemoclaw messaging channels, nemoclaw telegram, nemoclaw discord, nemoclaw slack, nemoclaw wechat, nemoclaw whatsapp, openshell channel messaging, nemoclaw workspace files, soul.md, user.md, identity.md, agents.md, sandbox persistence.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-sandboxes\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7DARH8BRTG51TRCAB7YWDJ4","nemoclaw-user-manage-policy","Adds, removes, or modifies allowed endpoints in the sandbox policy. Use when customizing network policy, changing egress rules, or configuring sandbox endpoint access. Trigger keywords - customize nemoclaw network policy, sandbox egress policy configuration, nemoclaw integration policy examples, post-install policy setup, openshell approval workflow, policy preset, nemoclaw approve network requests, sandbox egress approval tui.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-policy\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7DARAT62M2VR37590VCZ5NS","nemoclaw-user-get-started","Installs NemoClaw, launches a sandbox, and runs the first agent prompt. Use when onboarding, installing, or launching a NemoClaw sandbox for the first time. Trigger keywords - nemoclaw quickstart, install nemoclaw openclaw sandbox, nemohermes quickstart, hermes agent nemoclaw, run hermes openshell sandbox, nemoclaw prerequisites, nemoclaw supported platforms, nemoclaw hardware software, nemoclaw windows wsl2 setup, nemoclaw install windows docker desktop.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-get-started\u002FSKILL.md",[],[]]