[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M732Y4P8JFCE3WJ9TP58PXK0":3,"skill-same:01M732Y4P8JFCE3WJ9TP58PXK0":61},{"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":40,"commitSha":41,"skillDirectory":42,"forksCount":14,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M732Y4P8JFCE3WJ9TP58PXK0","jest-typescript",null,"Jest with TypeScript - Industry standard testing framework with 70% market share, mature ecosystem, React Testing Library integration","julio211916\u002FTlantiCAD-Studio-V0.1-alpha","julio211916","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128201165?v=4","01M730ENY015MHFY82VKR6AGGR","José Carlos amador garcia","01M730ENYT83EWH6EXRHF9FTXV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fjest-typescript\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: jest-typescript\ndescription: Jest with TypeScript - Industry standard testing framework with 70% market share, mature ecosystem, React Testing Library integration\nversion: 1.0.0\ncategory: toolchain\nauthor: Claude MPM Team\nlicense: MIT\nprogressive_disclosure:\n  entry_point:\n    summary: \"TypeScript testing with Jest - industry standard testing framework with mature ecosystem, React Testing Library, snapshot testing, built-in coverage\"\n    when_to_use: \"Testing existing Jest projects, React\u002FNode.js with TypeScript, using Jest ecosystem tools, migrating from JavaScript to TypeScript, legacy project support\"\n    quick_start: \"1. npm install -D jest @types\u002Fjest ts-jest 2. npx ts-jest config:init 3. Create *.test.ts files 4. npm test\"\ncontext_limit: 700\ntags:\n  - testing\n  - jest\n  - typescript\n  - react-testing-library\n  - legacy\nrequires_tools: []\n---\n\n# Jest + TypeScript - Industry Standard Testing\n\n## Overview\n\nJest is the industry-standard testing framework with 70% market share, providing a mature, battle-tested ecosystem for TypeScript projects. It offers comprehensive testing capabilities with built-in snapshot testing, mocking, and coverage reporting.\n\n**Key Features**:\n- 🏆 **Industry Standard**: 70% market share, widely adopted\n- 📦 **All-in-One**: Test runner, assertions, mocks, coverage in one package\n- 📸 **Snapshot Testing**: Built-in snapshot support for UI testing\n- 🧪 **React Integration**: React Testing Library, enzyme compatibility\n- 🔧 **Mature Ecosystem**: Extensive plugins, tooling, and community support\n- 🎯 **TypeScript Support**: Full type safety via ts-jest\n- 🔍 **Coverage Reports**: Built-in Istanbul coverage\n- 🌐 **Multi-Platform**: Node.js, browser (jsdom), React Native\n\n**Installation**:\n```bash\nnpm install -D jest @types\u002Fjest ts-jest\nnpm install -D @testing-library\u002Freact @testing-library\u002Fjest-dom  # For React\n```\n\n## Basic Setup\n\n### 1. Initialize Jest Configuration\n\n```bash\nnpx ts-jest config:init\n```\n\nThis creates **jest.config.js**:\n```javascript\nmodule.exports = {\n  preset: 'ts-jest',\n  testEnvironment: 'node',\n};\n```\n\n### 2. Manual Configuration\n\n**jest.config.ts** (TypeScript config):\n```typescript\nimport type { Config } from 'jest';\n\nconst config: Config = {\n  preset: 'ts-jest',\n  testEnvironment: 'node',\n  roots: ['\u003CrootDir>\u002Fsrc'],\n  testMatch: ['**\u002F__tests__\u002F**\u002F*.ts', '**\u002F?(*.)+(spec|test).ts'],\n  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],\n  collectCoverageFrom: [\n    'src\u002F**\u002F*.{ts,tsx}',\n    '!src\u002F**\u002F*.d.ts',\n    '!src\u002F**\u002F*.test.{ts,tsx}',\n    '!src\u002F**\u002F__tests__\u002F**',\n  ],\n  coverageThreshold: {\n    global: {\n      branches: 80,\n      functions: 80,\n      lines: 80,\n      statements: 80,\n    },\n  },\n};\n\nexport default config;\n```\n\n### 3. TypeScript Configuration\n\n**tsconfig.json**:\n```json\n{\n  \"compilerOptions\": {\n    \"types\": [\"jest\", \"@testing-library\u002Fjest-dom\"],\n    \"esModuleInterop\": true\n  }\n}\n```\n\n**tsconfig.test.json** (test-specific):\n```json\n{\n  \"extends\": \".\u002Ftsconfig.json\",\n  \"compilerOptions\": {\n    \"types\": [\"jest\", \"node\", \"@testing-library\u002Fjest-dom\"]\n  },\n  \"include\": [\"src\u002F**\u002F*.test.ts\", \"src\u002F**\u002F*.spec.ts\", \"src\u002F**\u002F__tests__\u002F**\"]\n}\n```\n\n### 4. Package.json Scripts\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"jest\",\n    \"test:watch\": \"jest --watch\",\n    \"test:coverage\": \"jest --coverage\",\n    \"test:ci\": \"jest --ci --coverage --maxWorkers=2\"\n  }\n}\n```\n\n## Core Testing Patterns\n\n### Basic Test Structure\n\n```typescript\nimport { describe, it, expect, beforeEach, afterEach } from '@jest\u002Fglobals';\n\ndescribe('Calculator', () => {\n  let calculator: Calculator;\n\n  beforeEach(() => {\n    calculator = new Calculator();\n  });\n\n  afterEach(() => {\n    \u002F\u002F Cleanup\n  });\n\n  it('adds two numbers correctly', () => {\n    const result = calculator.add(2, 3);\n    expect(result).toBe(5);\n  });\n\n  it('handles negative numbers', () => {\n    expect(calculator.add(-5, 3)).toBe(-2);\n  });\n\n  it.each([\n    [1, 1, 2],\n    [2, 3, 5],\n    [10, -5, 5],\n  ])('adds %i + %i to equal %i', (a, b, expected) => {\n    expect(calculator.add(a, b)).toBe(expected);\n  });\n});\n```\n\n### TypeScript Type-Safe Tests\n\n```typescript\ninterface User {\n  id: number;\n  name: string;\n  email: string;\n  role: 'admin' | 'user';\n}\n\ndescribe('User Service', () => {\n  it('creates user with correct types', () => {\n    const user: User = {\n      id: 1,\n      name: 'Alice',\n      email: 'alice@example.com',\n      role: 'admin',\n    };\n\n    \u002F\u002F Type-safe assertions\n    expect(user.id).toEqual(expect.any(Number));\n    expect(user.name).toEqual(expect.any(String));\n    expect(user.role).toMatch(\u002F^(admin|user)$\u002F);\n  });\n\n  it('validates user object shape', () => {\n    const user = createUser('Bob', 'bob@example.com');\n\n    expect(user).toMatchObject({\n      id: expect.any(Number),\n      name: 'Bob',\n      email: 'bob@example.com',\n    });\n  });\n});\n```\n\n## Mocking with TypeScript\n\n### jest.mock for Module Mocking\n\n```typescript\nimport { jest } from '@jest\u002Fglobals';\nimport { UserService } from '.\u002FUserService';\nimport * as userApi from '.\u002Fapi\u002FuserApi';\n\n\u002F\u002F Mock entire module\njest.mock('.\u002Fapi\u002FuserApi');\n\ndescribe('UserService with Mocks', () => {\n  beforeEach(() => {\n    jest.clearAllMocks();\n  });\n\n  it('fetches user data', async () => {\n    const mockUser = { id: 1, name: 'Alice', email: 'alice@example.com' };\n\n    \u002F\u002F Type-safe mock\n    const mockedFetchUser = jest.mocked(userApi.fetchUser);\n    mockedFetchUser.mockResolvedValue(mockUser);\n\n    const service = new UserService();\n    const user = await service.getUser(1);\n\n    expect(mockedFetchUser).toHaveBeenCalledWith(1);\n    expect(user).toEqual(mockUser);\n  });\n});\n```\n\n### jest.spyOn for Method Spying\n\n```typescript\nimport { jest } from '@jest\u002Fglobals';\n\nclass Logger {\n  log(message: string): void {\n    console.log(message);\n  }\n\n  error(message: string): void {\n    console.error(message);\n  }\n}\n\ndescribe('Logger Spy', () => {\n  let logger: Logger;\n  let logSpy: jest.SpyInstance;\n\n  beforeEach(() => {\n    logger = new Logger();\n    logSpy = jest.spyOn(logger, 'log');\n  });\n\n  afterEach(() => {\n    logSpy.mockRestore();\n  });\n\n  it('tracks method calls', () => {\n    logger.log('Hello');\n    logger.log('World');\n\n    expect(logSpy).toHaveBeenCalledTimes(2);\n    expect(logSpy).toHaveBeenCalledWith('Hello');\n    expect(logSpy).toHaveBeenLastCalledWith('World');\n  });\n\n  it('provides custom implementation', () => {\n    logSpy.mockImplementation((msg: string) => {\n      console.log(`[CUSTOM] ${msg}`);\n    });\n\n    logger.log('Test');\n    expect(logSpy).toHaveBeenCalledWith('Test');\n  });\n});\n```\n\n### Type-Safe Mock Functions\n\n```typescript\nimport { jest } from '@jest\u002Fglobals';\n\ninterface ApiResponse\u003CT> {\n  data: T;\n  status: number;\n}\n\ntype FetchUserFn = (id: number) => Promise\u003CApiResponse\u003CUser>>;\n\ndescribe('Type-Safe Mocks', () => {\n  it('creates typed mock function', async () => {\n    const mockFetchUser = jest.fn\u003CFetchUserFn>()\n      .mockResolvedValue({\n        data: { id: 1, name: 'Alice', email: 'alice@example.com', role: 'user' },\n        status: 200,\n      });\n\n    const result = await mockFetchUser(1);\n\n    expect(result.data.name).toBe('Alice');\n    expect(result.status).toBe(200);\n    expect(mockFetchUser).toHaveBeenCalledWith(1);\n  });\n\n  it('uses mock implementation', () => {\n    const mockCalculate = jest.fn\u003C(x: number, y: number) => number>()\n      .mockImplementation((x, y) => x + y);\n\n    expect(mockCalculate(5, 3)).toBe(8);\n    expect(mockCalculate).toHaveBeenCalledWith(5, 3);\n  });\n});\n```\n\n### Mocking Timers\n\n```typescript\nimport { jest } from '@jest\u002Fglobals';\n\ndescribe('Timer Mocking', () => {\n  beforeEach(() => {\n    jest.useFakeTimers();\n  });\n\n  afterEach(() => {\n    jest.useRealTimers();\n  });\n\n  it('fast-forwards time', () => {\n    const callback = jest.fn();\n    setTimeout(callback, 1000);\n\n    jest.advanceTimersByTime(500);\n    expect(callback).not.toHaveBeenCalled();\n\n    jest.advanceTimersByTime(500);\n    expect(callback).toHaveBeenCalledTimes(1);\n  });\n\n  it('runs all timers', () => {\n    const callback = jest.fn();\n    setTimeout(callback, 1000);\n    setTimeout(callback, 2000);\n\n    jest.runAllTimers();\n    expect(callback).toHaveBeenCalledTimes(2);\n  });\n\n  it('handles intervals', () => {\n    const callback = jest.fn();\n    setInterval(callback, 1000);\n\n    jest.advanceTimersByTime(3500);\n    expect(callback).toHaveBeenCalledTimes(3);\n\n    jest.clearAllTimers();\n  });\n});\n```\n\n## React Testing Library + TypeScript\n\n### Setup for React\n\n```bash\nnpm install -D @testing-library\u002Freact @testing-library\u002Fjest-dom @testing-library\u002Fuser-event\nnpm install -D jest-environment-jsdom\n```\n\n**jest.config.ts** (React):\n```typescript\nimport type { Config } from 'jest';\n\nconst config: Config = {\n  preset: 'ts-jest',\n  testEnvironment: 'jsdom',\n  setupFilesAfterEnv: ['\u003CrootDir>\u002Fsrc\u002Ftest\u002Fsetup.ts'],\n  moduleNameMapper: {\n    '\\\\.(css|less|scss|sass)$': 'identity-obj-proxy',\n    '\\\\.(jpg|jpeg|png|gif|svg)$': '\u003CrootDir>\u002F__mocks__\u002FfileMock.js',\n  },\n  transform: {\n    '^.+\\\\.tsx?$': ['ts-jest', {\n      tsconfig: {\n        jsx: 'react-jsx',\n      },\n    }],\n  },\n};\n\nexport default config;\n```\n\n**src\u002Ftest\u002Fsetup.ts**:\n```typescript\nimport '@testing-library\u002Fjest-dom';\nimport { cleanup } from '@testing-library\u002Freact';\nimport { afterEach } from '@jest\u002Fglobals';\n\nafterEach(() => {\n  cleanup();\n});\n```\n\n### React Component Testing\n\n```typescript\nimport { render, screen, waitFor } from '@testing-library\u002Freact';\nimport userEvent from '@testing-library\u002Fuser-event';\nimport { Counter } from '.\u002FCounter';\n\ndescribe('Counter Component', () => {\n  it('renders initial count', () => {\n    render(\u003CCounter initialCount={0} \u002F>);\n    expect(screen.getByText('Count: 0')).toBeInTheDocument();\n  });\n\n  it('increments counter on button click', async () => {\n    const user = userEvent.setup();\n    render(\u003CCounter initialCount={0} \u002F>);\n\n    const button = screen.getByRole('button', { name: \u002Fincrement\u002Fi });\n    await user.click(button);\n\n    expect(screen.getByText('Count: 1')).toBeInTheDocument();\n  });\n\n  it('calls onChange callback with correct value', async () => {\n    const onChange = jest.fn();\n    const user = userEvent.setup();\n\n    render(\u003CCounter initialCount={5} onChange={onChange} \u002F>);\n\n    await user.click(screen.getByRole('button', { name: \u002Fincrement\u002Fi }));\n\n    expect(onChange).toHaveBeenCalledWith(6);\n    expect(onChange).toHaveBeenCalledTimes(1);\n  });\n\n  it('disables button when max count reached', () => {\n    render(\u003CCounter initialCount={10} maxCount={10} \u002F>);\n\n    const button = screen.getByRole('button', { name: \u002Fincrement\u002Fi });\n    expect(button).toBeDisabled();\n  });\n});\n```\n\n### Testing Hooks\n\n```typescript\nimport { renderHook, act } from '@testing-library\u002Freact';\nimport { useCounter } from '.\u002FuseCounter';\n\ndescribe('useCounter Hook', () => {\n  it('initializes with default value', () => {\n    const { result } = renderHook(() => useCounter(0));\n    expect(result.current.count).toBe(0);\n  });\n\n  it('increments counter', () => {\n    const { result } = renderHook(() => useCounter(0));\n\n    act(() => {\n      result.current.increment();\n    });\n\n    expect(result.current.count).toBe(1);\n  });\n\n  it('decrements counter', () => {\n    const { result } = renderHook(() => useCounter(5));\n\n    act(() => {\n      result.current.decrement();\n    });\n\n    expect(result.current.count).toBe(4);\n  });\n\n  it('resets to initial value', () => {\n    const { result } = renderHook(() => useCounter(10));\n\n    act(() => {\n      result.current.increment();\n      result.current.increment();\n    });\n\n    expect(result.current.count).toBe(12);\n\n    act(() => {\n      result.current.reset();\n    });\n\n    expect(result.current.count).toBe(10);\n  });\n});\n```\n\n### Testing Async Components\n\n```typescript\nimport { render, screen, waitFor } from '@testing-library\u002Freact';\nimport userEvent from '@testing-library\u002Fuser-event';\nimport { UserProfile } from '.\u002FUserProfile';\nimport * as api from '.\u002Fapi';\n\njest.mock('.\u002Fapi');\n\ndescribe('UserProfile Async', () => {\n  it('loads and displays user data', async () => {\n    const mockUser = { id: 1, name: 'Alice', email: 'alice@example.com' };\n    jest.mocked(api.fetchUser).mockResolvedValue(mockUser);\n\n    render(\u003CUserProfile userId={1} \u002F>);\n\n    expect(screen.getByText('Loading...')).toBeInTheDocument();\n\n    await waitFor(() => {\n      expect(screen.getByText('Alice')).toBeInTheDocument();\n    });\n\n    expect(screen.getByText('alice@example.com')).toBeInTheDocument();\n  });\n\n  it('displays error on fetch failure', async () => {\n    jest.mocked(api.fetchUser).mockRejectedValue(new Error('Network error'));\n\n    render(\u003CUserProfile userId={1} \u002F>);\n\n    await waitFor(() => {\n      expect(screen.getByText(\u002Ferror\u002Fi)).toBeInTheDocument();\n    });\n  });\n});\n```\n\n## Snapshot Testing\n\n### Component Snapshots\n\n```typescript\nimport { render } from '@testing-library\u002Freact';\nimport { UserCard } from '.\u002FUserCard';\n\ndescribe('UserCard Snapshots', () => {\n  it('matches snapshot for regular user', () => {\n    const { container } = render(\n      \u003CUserCard\n        name=\"Alice\"\n        email=\"alice@example.com\"\n        role=\"user\"\n      \u002F>\n    );\n\n    expect(container.firstChild).toMatchSnapshot();\n  });\n\n  it('matches snapshot for admin user', () => {\n    const { container } = render(\n      \u003CUserCard\n        name=\"Bob\"\n        email=\"bob@example.com\"\n        role=\"admin\"\n      \u002F>\n    );\n\n    expect(container.firstChild).toMatchSnapshot();\n  });\n\n  it('uses inline snapshot', () => {\n    const user = { id: 1, name: 'Charlie', role: 'user' };\n\n    expect(user).toMatchInlineSnapshot(`\n      {\n        \"id\": 1,\n        \"name\": \"Charlie\",\n        \"role\": \"user\",\n      }\n    `);\n  });\n});\n```\n\n### Updating Snapshots\n\n```bash\n# Update all snapshots\njest --updateSnapshot\njest -u\n\n# Update snapshots for specific test file\njest UserCard.test.tsx -u\n\n# Interactive snapshot update\njest --watch\n# Press 'u' to update failing snapshots\n```\n\n### Custom Snapshot Serializers\n\n```typescript\n\u002F\u002F __tests__\u002Fserializers\u002FdateSerializer.ts\nexport default {\n  test: (val: any) => val instanceof Date,\n  print: (val: Date) => `Date(${val.toISOString()})`,\n};\n```\n\n**jest.config.ts**:\n```typescript\nconst config: Config = {\n  snapshotSerializers: ['\u003CrootDir>\u002F__tests__\u002Fserializers\u002FdateSerializer.ts'],\n};\n```\n\n## Async Testing\n\n### Testing Promises\n\n```typescript\nimport { fetchData, saveData } from '.\u002Fapi';\n\ndescribe('Async Operations', () => {\n  it('resolves with data', async () => {\n    const data = await fetchData(1);\n    expect(data).toBeDefined();\n    expect(data.id).toBe(1);\n  });\n\n  it('handles promise rejection', async () => {\n    await expect(fetchData(-1)).rejects.toThrow('Invalid ID');\n  });\n\n  it('uses resolves matcher', async () => {\n    await expect(fetchData(1)).resolves.toHaveProperty('id', 1);\n  });\n\n  it('tests 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(expect.any(Number));\n  });\n});\n```\n\n### Testing Callbacks\n\n```typescript\ndescribe('Callback Testing', () => {\n  it('calls callback with correct arguments', (done) => {\n    function fetchWithCallback(id: number, callback: (data: any) => void) {\n      setTimeout(() => {\n        callback({ id, name: 'Test' });\n      }, 100);\n    }\n\n    fetchWithCallback(1, (data) => {\n      try {\n        expect(data.id).toBe(1);\n        expect(data.name).toBe('Test');\n        done();\n      } catch (error) {\n        done(error);\n      }\n    });\n  });\n});\n```\n\n## Coverage Configuration\n\n### Advanced Coverage Setup\n\n**jest.config.ts**:\n```typescript\nconst config: Config = {\n  collectCoverage: true,\n  coverageDirectory: 'coverage',\n  coverageProvider: 'v8', \u002F\u002F or 'babel' for compatibility\n  coverageReporters: ['text', 'lcov', 'html', 'json'],\n  collectCoverageFrom: [\n    'src\u002F**\u002F*.{ts,tsx}',\n    '!src\u002F**\u002F*.d.ts',\n    '!src\u002F**\u002F*.test.{ts,tsx}',\n    '!src\u002F**\u002F__tests__\u002F**',\n    '!src\u002Findex.ts',\n    '!src\u002Ftypes\u002F**',\n  ],\n  coverageThreshold: {\n    global: {\n      branches: 80,\n      functions: 80,\n      lines: 80,\n      statements: 80,\n    },\n    '.\u002Fsrc\u002Fcore\u002F': {\n      branches: 90,\n      functions: 90,\n      lines: 90,\n      statements: 90,\n    },\n  },\n  coveragePathIgnorePatterns: [\n    '\u002Fnode_modules\u002F',\n    '\u002Fdist\u002F',\n    '\u002F__tests__\u002F',\n  ],\n};\n```\n\n### Running Coverage\n\n```bash\n# Generate coverage report\nnpm test -- --coverage\n\n# Coverage with watch mode\nnpm test -- --coverage --watch\n\n# Coverage for specific files\nnpm test -- --coverage --collectCoverageFrom=\"src\u002Fcomponents\u002F**\u002F*.tsx\"\n\n# View HTML report\nopen coverage\u002Flcov-report\u002Findex.html\n```\n\n## Migration from Vitest\n\n### Key Differences\n\n**API Changes**:\n```typescript\n\u002F\u002F Vitest\nimport { vi } from 'vitest';\nconst mockFn = vi.fn();\nvi.spyOn(obj, 'method');\n\n\u002F\u002F Jest\nimport { jest } from '@jest\u002Fglobals';\nconst mockFn = jest.fn();\njest.spyOn(obj, 'method');\n```\n\n### Migration Checklist\n\n**1. Update Dependencies**:\n```bash\nnpm uninstall vitest @vitest\u002Fui\nnpm install -D jest @types\u002Fjest ts-jest\n```\n\n**2. Update package.json**:\n```json\n{\n  \"scripts\": {\n    \"test\": \"jest\",           \u002F\u002F Was: vitest run\n    \"test:watch\": \"jest --watch\"  \u002F\u002F Was: vitest\n  }\n}\n```\n\n**3. Replace vitest.config.ts with jest.config.ts**:\n```typescript\n\u002F\u002F Old: vitest.config.ts\nimport { defineConfig } from 'vitest\u002Fconfig';\nexport default defineConfig({\n  test: {\n    globals: true,\n    environment: 'jsdom',\n  },\n});\n\n\u002F\u002F New: jest.config.ts\nimport type { Config } from 'jest';\nconst config: Config = {\n  preset: 'ts-jest',\n  testEnvironment: 'jsdom',\n  globals: {\n    'ts-jest': {\n      isolatedModules: true,\n    },\n  },\n};\nexport default config;\n```\n\n**4. Update Test Files**:\n```typescript\n\u002F\u002F Change imports\n- import { vi } from 'vitest';\n+ import { jest } from '@jest\u002Fglobals';\n\n\u002F\u002F Update mocks\n- vi.fn()\n+ jest.fn()\n\n- vi.spyOn()\n+ jest.spyOn()\n\n- vi.mock()\n+ jest.mock()\n\n\u002F\u002F Timer mocks\n- vi.useFakeTimers()\n+ jest.useFakeTimers()\n\n- vi.advanceTimersByTime()\n+ jest.advanceTimersByTime()\n```\n\n**5. Update tsconfig.json**:\n```json\n{\n  \"compilerOptions\": {\n    \"types\": [\"jest\", \"@testing-library\u002Fjest-dom\"]  \u002F\u002F Was: vitest\u002Fglobals\n  }\n}\n```\n\n## Jest vs Vitest Comparison\n\n### Performance\n\n**Jest**:\n- Slower initial startup (no HMR)\n- Sequential test execution by default\n- 1-5 seconds for medium projects\n\n**Vitest**:\n- Instant HMR-based execution\n- Parallel by default\n- 100-500ms for same projects\n\n### Ecosystem\n\n**Jest**:\n- ✅ 70% market share\n- ✅ Mature ecosystem (8+ years)\n- ✅ More Stack Overflow answers\n- ✅ Better corporate support\n\n**Vitest**:\n- ✅ Modern, growing adoption\n- ✅ Vite-native integration\n- ⚠️ Smaller ecosystem\n- ⚠️ Fewer resources\n\n### TypeScript Support\n\n**Jest**:\n- Requires ts-jest configuration\n- Extra transform step\n- Slower compilation\n\n**Vitest**:\n- Built-in TypeScript support\n- No configuration needed\n- Faster through Vite\n\n### When to Use Jest\n\nChoose Jest for:\n- ✅ Existing projects already using Jest\n- ✅ Corporate environments requiring proven tools\n- ✅ Projects requiring extensive ecosystem support\n- ✅ React projects with Create React App\n- ✅ Non-Vite build systems (Webpack, Rollup)\n\nChoose Vitest for:\n- ✅ New projects with modern tooling\n- ✅ Vite-based applications\n- ✅ Performance-critical test suites\n- ✅ ESM-first projects\n\n## Best Practices\n\n1. **Use TypeScript Configuration**: Type-safe tests prevent runtime errors\n2. **Mock External Dependencies**: Network, file system, databases\n3. **Isolate Tests**: Each test should be independent\n4. **Use describe Blocks**: Group related tests logically\n5. **Clear Mock State**: Use `jest.clearAllMocks()` in `beforeEach`\n6. **Test Edge Cases**: Empty arrays, null, undefined, errors\n7. **Use .each for Data-Driven Tests**: Test multiple inputs efficiently\n8. **Avoid Testing Implementation**: Test behavior, not internal structure\n9. **Keep Tests Fast**: Mock slow operations, use parallel execution\n10. **Maintain Coverage Thresholds**: Enforce minimum coverage in CI\n\n## Common Pitfalls\n\n❌ **Not clearing mocks between tests**:\n```typescript\n\u002F\u002F WRONG - mocks leak between tests\nit('test 1', () => {\n  jest.spyOn(api, 'fetch');\n  \u002F\u002F No cleanup!\n});\n\n\u002F\u002F CORRECT\nafterEach(() => {\n  jest.restoreAllMocks();\n});\n```\n\n❌ **Forgetting to await async tests**:\n```typescript\n\u002F\u002F WRONG - test completes before assertion\nit('fetches data', () => {\n  fetchData().then(data => {\n    expect(data).toBeDefined();  \u002F\u002F Never runs!\n  });\n});\n\n\u002F\u002F CORRECT\nit('fetches data', async () => {\n  const data = await fetchData();\n  expect(data).toBeDefined();\n});\n```\n\n❌ **Using wrong test environment**:\n```typescript\n\u002F\u002F WRONG - testing DOM without jsdom\n\u002F\u002F jest.config.ts\ntestEnvironment: 'node',  \u002F\u002F Can't test React!\n\n\u002F\u002F CORRECT\ntestEnvironment: 'jsdom',\n```\n\n❌ **Not using TypeScript types for mocks**:\n```typescript\n\u002F\u002F WRONG - no type safety\nconst mockFn = jest.fn();\n\n\u002F\u002F CORRECT\nconst mockFn = jest.fn\u003C(id: number) => Promise\u003CUser>>();\n```\n\n## Resources\n\n- **Documentation**: https:\u002F\u002Fjestjs.io\u002Fdocs\u002Fgetting-started\n- **TypeScript Guide**: https:\u002F\u002Fjestjs.io\u002Fdocs\u002Fgetting-started#using-typescript\n- **ts-jest**: https:\u002F\u002Fkulshekhar.github.io\u002Fts-jest\u002F\n- **React Testing Library**: https:\u002F\u002Ftesting-library.com\u002Fdocs\u002Freact-testing-library\u002Fintro\u002F\n- **Jest DOM Matchers**: https:\u002F\u002Fgithub.com\u002Ftesting-library\u002Fjest-dom\n\n## Related Skills\n\nWhen using Jest, consider these complementary skills:\n\n- **typescript-core**: Advanced TypeScript patterns, tsconfig optimization, and type safety\n- **react**: React component testing patterns with Testing Library\n- **vitest**: Modern alternative with Vite-native performance and faster execution\n\n### Quick TypeScript Type Safety Reference (Inlined for Standalone Use)\n\n```typescript\n\u002F\u002F Type-safe test helpers with generics\nfunction createMockUser\u003CT extends Partial\u003CUser>>(overrides: T): User & T {\n  return {\n    id: 1,\n    name: 'Test User',\n    email: 'test@example.com',\n    ...overrides\n  };\n}\n\n\u002F\u002F Usage with type inference\nconst adminUser = createMockUser({ role: 'admin' });\n\u002F\u002F Type: User & { role: string }\n\n\u002F\u002F Type-safe mock functions\nconst mockFetch = jest.fn\u003Ctypeof fetch>();\nmockFetch.mockResolvedValue(new Response('{}'));\n\n\u002F\u002F Const type parameters for literal types\nconst createConfig = \u003Cconst T extends Record\u003Cstring, unknown>>(config: T): T => config;\nconst testConfig = createConfig({ environment: 'test', debug: true });\n\u002F\u002F Type: { environment: \"test\"; debug: true } (literals preserved)\n```\n\n### Quick React Testing Patterns (Inlined for Standalone Use)\n\n```typescript\n\u002F\u002F React Testing Library with Jest\nimport { render, screen, fireEvent, waitFor } from '@testing-library\u002Freact';\nimport userEvent from '@testing-library\u002Fuser-event';\nimport '@testing-library\u002Fjest-dom';\n\n\u002F\u002F Component testing pattern\ndescribe('UserProfile', () => {\n  it('should display user information', () => {\n    const user = { id: 1, name: 'Alice', email: 'alice@example.com' };\n    render(\u003CUserProfile user={user} \u002F>);\n\n    expect(screen.getByText('Alice')).toBeInTheDocument();\n    expect(screen.getByText('alice@example.com')).toBeInTheDocument();\n  });\n\n  it('should handle user interactions', async () => {\n    const onSubmit = jest.fn();\n    render(\u003CUserForm onSubmit={onSubmit} \u002F>);\n\n    \u002F\u002F User interactions\n    await userEvent.type(screen.getByLabelText('Name'), 'Bob');\n    await userEvent.click(screen.getByRole('button', { name: 'Submit' }));\n\n    await waitFor(() => {\n      expect(onSubmit).toHaveBeenCalledWith({ name: 'Bob' });\n    });\n  });\n});\n\n\u002F\u002F Hook testing\nimport { renderHook, act } from '@testing-library\u002Freact';\n\ntest('useCounter hook', () => {\n  const { result } = renderHook(() => useCounter(0));\n\n  expect(result.current.count).toBe(0);\n\n  act(() => {\n    result.current.increment();\n  });\n\n  expect(result.current.count).toBe(1);\n});\n\n\u002F\u002F Context and Provider testing\nconst wrapper = ({ children }: { children: React.ReactNode }) => (\n  \u003CAuthProvider>{children}\u003C\u002FAuthProvider>\n);\n\ntest('useAuth hook with context', () => {\n  const { result } = renderHook(() => useAuth(), { wrapper });\n  expect(result.current.user).toBeDefined();\n});\n```\n\n### Quick Vitest Comparison (Inlined for Standalone Use)\n\n**When to Choose Vitest over Jest:**\n- New Vite\u002FVite-based projects (Next.js with Turbopack, SvelteKit)\n- Need faster test execution (10-100x faster)\n- ESM-first architecture\n- Hot Module Replacement for tests\n\n**When to Stick with Jest:**\n- Existing large codebases with Jest already configured\n- Corporate environments with established Jest workflows\n- Need mature ecosystem and extensive plugins\n- React apps with Create React App (default Jest setup)\n\n**Migration Snippet (Jest → Vitest):**\n```typescript\n\u002F\u002F Jest: import from '@testing-library\u002Fjest-dom'\nimport '@testing-library\u002Fjest-dom';\n\n\u002F\u002F Vitest: import from vitest globals\nimport { expect, test, describe } from 'vitest';\nimport { screen } from '@testing-library\u002Freact';\n\n\u002F\u002F Most Jest syntax works in Vitest unchanged\ntest('component renders', () => {\n  render(\u003CComponent \u002F>);\n  expect(screen.getByText('Hello')).toBeTruthy();\n});\n```\n\n[Full TypeScript, React, and Vitest patterns available in respective skills if deployed together]\n\n## Summary\n\n- **Jest** is the industry standard with 70% market share\n- **TypeScript support** via ts-jest with full type safety\n- **All-in-one solution**: Test runner, assertions, mocks, coverage\n- **React Testing Library** integration for component testing\n- **Mature ecosystem** with extensive tooling and support\n- **Snapshot testing** for UI regression testing\n- **Migration path** from Vitest with compatible API\n- **Perfect for**: Existing projects, corporate environments, React apps, legacy support\n- **Trade-off**: Slower than Vitest but more mature and widely supported\n","# Jest + TypeScript - Industry Standard Testing\n\n## Overview\n\nJest is the industry-standard testing framework with 70% market share, providing a mature, battle-tested ecosystem for TypeScript projects. It offers comprehensive testing capabilities with built-in snapshot testing, mocking, and coverage reporting.\n\n**Key Features**:\n- 🏆 **Industry Standard**: 70% market share, widely adopted\n- 📦 **All-in-One**: Test runner, assertions, mocks, coverage in one package\n- 📸 **Snapshot Testing**: Built-in snapshot support for UI testing\n- 🧪 **React Integration**: React Testing Library, enzyme compatibility\n- 🔧 **Mature Ecosystem**: Extensive plugins, tooling, and community support\n- 🎯 **TypeScript Support**: Full type safety via ts-jest\n- 🔍 **Coverage Reports**: Built-in Istanbul coverage\n- 🌐 **Multi-Platform**: Node.js, browser (jsdom), React Native\n\n**Installation**:\n```bash\nnpm install -D jest @types\u002Fjest ts-jest\nnpm install -D @testing-library\u002Freact @testing-library\u002Fjest-dom  # For React\n```\n\n## Basic Setup\n\n### 1. Initialize Jest Configuration\n\n```bash\nnpx ts-jest config:init\n```\n\nThis creates **jest.config.js**:\n```javascript\nmodule.exports = {\n  preset: 'ts-jest',\n  testEnvironment: 'node',\n};\n```\n\n### 2. Manual Configuration\n\n**jest.config.ts** (TypeScript config):\n```typescript\nimport type { Config } from 'jest';\n\nconst config: Config = {\n  preset: 'ts-jest',\n  testEnvironment: 'node',\n  roots: ['\u003CrootDir>\u002Fsrc'],\n  testMatch: ['**\u002F__tests__\u002F**\u002F*.ts', '**\u002F?(*.)+(spec|test).ts'],\n  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],\n  collectCoverageFrom: [\n    'src\u002F**\u002F*.{ts,tsx}',\n    '!src\u002F**\u002F*.d.ts',\n    '!src\u002F**\u002F*.test.{ts,tsx}',\n    '!src\u002F**\u002F__tests__\u002F**',\n  ],\n  coverageThreshold: {\n    global: {\n      branches: 80,\n      functions: 80,\n      lines: 80,\n      statements: 80,\n    },\n  },\n};\n\nexport default config;\n```\n\n### 3. TypeScript Configuration\n\n**tsconfig.json**:\n```json\n{\n  \"compilerOptions\": {\n    \"types\": [\"jest\", \"@testing-library\u002Fjest-dom\"],\n    \"esModuleInterop\": true\n  }\n}\n```\n\n**tsconfig.test.json** (test-specific):\n```json\n{\n  \"extends\": \".\u002Ftsconfig.json\",\n  \"compilerOptions\": {\n    \"types\": [\"jest\", \"node\", \"@testing-library\u002Fjest-dom\"]\n  },\n  \"include\": [\"src\u002F**\u002F*.test.ts\", \"src\u002F**\u002F*.spec.ts\", \"src\u002F**\u002F__tests__\u002F**\"]\n}\n```\n\n### 4. Package.json Scripts\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"jest\",\n    \"test:watch\": \"jest --watch\",\n    \"test:coverage\": \"jest --coverage\",\n    \"test:ci\": \"jest --ci --coverage --maxWorkers=2\"\n  }\n}\n```\n\n## Core Testing Patterns\n\n### Basic Test Structure\n\n```typescript\nimport { describe, it, expect, beforeEach, afterEach } from '@jest\u002Fglobals';\n\ndescribe('Calculator', () => {\n  let calculator: Calculator;\n\n  beforeEach(() => {\n    calculator = new Calculator();\n  });\n\n  afterEach(() => {\n    \u002F\u002F Cleanup\n  });\n\n  it('adds two numbers correctly', () => {\n    const result = calculator.add(2, 3);\n    expect(result).toBe(5);\n  });\n\n  it('handles negative numbers', () => {\n    expect(calculator.add(-5, 3)).toBe(-2);\n  });\n\n  it.each([\n    [1, 1, 2],\n    [2, 3, 5],\n    [10, -5, 5],\n  ])('adds %i + %i to equal %i', (a, b, expected) => {\n    expect(calculator.add(a, b)).toBe(expected);\n  });\n});\n```\n\n### TypeScript Type-Safe Tests\n\n```typescript\ninterface User {\n  id: number;\n  name: string;\n  email: string;\n  role: 'admin' | 'user';\n}\n\ndescribe('User Service', () => {\n  it('creates user with correct types', () => {\n    const user: User = {\n      id: 1,\n      name: 'Alice',\n      email: 'alice@example.com',\n      role: 'admin',\n    };\n\n    \u002F\u002F Type-safe assertions\n    expect(user.id).toEqual(expect.any(Number));\n    expect(user.name).toEqual(expect.any(String));\n    expect(user.role).toMatch(\u002F^(admin|user)$\u002F);\n  });\n\n  it('validates user object shape', () => {\n    const user = createUser('Bob', 'bob@example.com');\n\n    expect(user).toMatchObject({\n      id: expect.any(Number),\n      name: 'Bob',\n      email: 'bob@example.com',\n    });\n  });\n});\n```\n\n## Mocking with TypeScript\n\n### jest.mock for Module Mocking\n\n```typescript\nimport { jest } from '@jest\u002Fglobals';\nimport { UserService } from '.\u002FUserService';\nimport * as userApi from '.\u002Fapi\u002FuserApi';\n\n\u002F\u002F Mock entire module\njest.mock('.\u002Fapi\u002FuserApi');\n\ndescribe('UserService with Mocks', () => {\n  beforeEach(() => {\n    jest.clearAllMocks();\n  });\n\n  it('fetches user data', async () => {\n    const mockUser = { id: 1, name: 'Alice', email: 'alice@example.com' };\n\n    \u002F\u002F Type-safe mock\n    const mockedFetchUser = jest.mocked(userApi.fetchUser);\n    mockedFetchUser.mockResolvedValue(mockUser);\n\n    const service = new UserService();\n    const user = await service.getUser(1);\n\n    expect(mockedFetchUser).toHaveBeenCalledWith(1);\n    expect(user).toEqual(mockUser);\n  });\n});\n```\n\n### jest.spyOn for Method Spying\n\n```typescript\nimport { jest } from '@jest\u002Fglobals';\n\nclass Logger {\n  log(message: string): void {\n    console.log(message);\n  }\n\n  error(message: string): void {\n    console.error(message);\n  }\n}\n\ndescribe('Logger Spy', () => {\n  let logger: Logger;\n  let logSpy: jest.SpyInstance;\n\n  beforeEach(() => {\n    logger = new Logger();\n    logSpy = jest.spyOn(logger, 'log');\n  });\n\n  afterEach(() => {\n    logSpy.mockRestore();\n  });\n\n  it('tracks method calls', () => {\n    logger.log('Hello');\n    logger.log('World');\n\n    expect(logSpy).toHaveBeenCalledTimes(2);\n    expect(logSpy).toHaveBeenCalledWith('Hello');\n    expect(logSpy).toHaveBeenLastCalledWith('World');\n  });\n\n  it('provides custom implementation', () => {\n    logSpy.mockImplementation((msg: string) => {\n      console.log(`[CUSTOM] ${msg}`);\n    });\n\n    logger.log('Test');\n    expect(logSpy).toHaveBeenCalledWith('Test');\n  });\n});\n```\n\n### Type-Safe Mock Functions\n\n```typescript\nimport { jest } from '@jest\u002Fglobals';\n\ninterface ApiResponse\u003CT> {\n  data: T;\n  status: number;\n}\n\ntype FetchUserFn = (id: number) => Promise\u003CApiResponse\u003CUser>>;\n\ndescribe('Type-Safe Mocks', () => {\n  it('creates typed mock function', async () => {\n    const mockFetchUser = jest.fn\u003CFetchUserFn>()\n      .mockResolvedValue({\n        data: { id: 1, name: 'Alice', email: 'alice@example.com', role: 'user' },\n        status: 200,\n      });\n\n    const result = await mockFetchUser(1);\n\n    expect(result.data.name).toBe('Alice');\n    expect(result.status).toBe(200);\n    expect(mockFetchUser).toHaveBeenCalledWith(1);\n  });\n\n  it('uses mock implementation', () => {\n    const mockCalculate = jest.fn\u003C(x: number, y: number) => number>()\n      .mockImplementation((x, y) => x + y);\n\n    expect(mockCalculate(5, 3)).toBe(8);\n    expect(mockCalculate).toHaveBeenCalledWith(5, 3);\n  });\n});\n```\n\n### Mocking Timers\n\n```typescript\nimport { jest } from '@jest\u002Fglobals';\n\ndescribe('Timer Mocking', () => {\n  beforeEach(() => {\n    jest.useFakeTimers();\n  });\n\n  afterEach(() => {\n    jest.useRealTimers();\n  });\n\n  it('fast-forwards time', () => {\n    const callback = jest.fn();\n    setTimeout(callback, 1000);\n\n    jest.advanceTimersByTime(500);\n    expect(callback).not.toHaveBeenCalled();\n\n    jest.advanceTimersByTime(500);\n    expect(callback).toHaveBeenCalledTimes(1);\n  });\n\n  it('runs all timers', () => {\n    const callback = jest.fn();\n    setTimeout(callback, 1000);\n    setTimeout(callback, 2000);\n\n    jest.runAllTimers();\n    expect(callback).toHaveBeenCalledTimes(2);\n  });\n\n  it('handles intervals', () => {\n    const callback = jest.fn();\n    setInterval(callback, 1000);\n\n    jest.advanceTimersByTime(3500);\n    expect(callback).toHaveBeenCalledTimes(3);\n\n    jest.clearAllTimers();\n  });\n});\n```\n\n## React Testing Library + TypeScript\n\n### Setup for React\n\n```bash\nnpm install -D @testing-library\u002Freact @testing-library\u002Fjest-dom @testing-library\u002Fuser-event\nnpm install -D jest-environment-jsdom\n```\n\n**jest.config.ts** (React):\n```typescript\nimport type { Config } from 'jest';\n\nconst config: Config = {\n  preset: 'ts-jest',\n  testEnvironment: 'jsdom',\n  setupFilesAfterEnv: ['\u003CrootDir>\u002Fsrc\u002Ftest\u002Fsetup.ts'],\n  moduleNameMapper: {\n    '\\\\.(css|less|scss|sass)$': 'identity-obj-proxy',\n    '\\\\.(jpg|jpeg|png|gif|svg)$': '\u003CrootDir>\u002F__mocks__\u002FfileMock.js',\n  },\n  transform: {\n    '^.+\\\\.tsx?$': ['ts-jest', {\n      tsconfig: {\n        jsx: 'react-jsx',\n      },\n    }],\n  },\n};\n\nexport default config;\n```\n\n**src\u002Ftest\u002Fsetup.ts**:\n```typescript\nimport '@testing-library\u002Fjest-dom';\nimport { cleanup } from '@testing-library\u002Freact';\nimport { afterEach } from '@jest\u002Fglobals';\n\nafterEach(() => {\n  cleanup();\n});\n```\n\n### React Component Testing\n\n```typescript\nimport { render, screen, waitFor } from '@testing-library\u002Freact';\nimport userEvent from '@testing-library\u002Fuser-event';\nimport { Counter } from '.\u002FCounter';\n\ndescribe('Counter Component', () => {\n  it('renders initial count', () => {\n    render(\u003CCounter initialCount={0} \u002F>);\n    expect(screen.getByText('Count: 0')).toBeInTheDocument();\n  });\n\n  it('increments counter on button click', async () => {\n    const user = userEvent.setup();\n    render(\u003CCounter initialCount={0} \u002F>);\n\n    const button = screen.getByRole('button', { name: \u002Fincrement\u002Fi });\n    await user.click(button);\n\n    expect(screen.getByText('Count: 1')).toBeInTheDocument();\n  });\n\n  it('calls onChange callback with correct value', async () => {\n    const onChange = jest.fn();\n    const user = userEvent.setup();\n\n    render(\u003CCounter initialCount={5} onChange={onChange} \u002F>);\n\n    await user.click(screen.getByRole('button', { name: \u002Fincrement\u002Fi }));\n\n    expect(onChange).toHaveBeenCalledWith(6);\n    expect(onChange).toHaveBeenCalledTimes(1);\n  });\n\n  it('disables button when max count reached', () => {\n    render(\u003CCounter initialCount={10} maxCount={10} \u002F>);\n\n    const button = screen.getByRole('button', { name: \u002Fincrement\u002Fi });\n    expect(button).toBeDisabled();\n  });\n});\n```\n\n### Testing Hooks\n\n```typescript\nimport { renderHook, act } from '@testing-library\u002Freact';\nimport { useCounter } from '.\u002FuseCounter';\n\ndescribe('useCounter Hook', () => {\n  it('initializes with default value', () => {\n    const { result } = renderHook(() => useCounter(0));\n    expect(result.current.count).toBe(0);\n  });\n\n  it('increments counter', () => {\n    const { result } = renderHook(() => useCounter(0));\n\n    act(() => {\n      result.current.increment();\n    });\n\n    expect(result.current.count).toBe(1);\n  });\n\n  it('decrements counter', () => {\n    const { result } = renderHook(() => useCounter(5));\n\n    act(() => {\n      result.current.decrement();\n    });\n\n    expect(result.current.count).toBe(4);\n  });\n\n  it('resets to initial value', () => {\n    const { result } = renderHook(() => useCounter(10));\n\n    act(() => {\n      result.current.increment();\n      result.current.increment();\n    });\n\n    expect(result.current.count).toBe(12);\n\n    act(() => {\n      result.current.reset();\n    });\n\n    expect(result.current.count).toBe(10);\n  });\n});\n```\n\n### Testing Async Components\n\n```typescript\nimport { render, screen, waitFor } from '@testing-library\u002Freact';\nimport userEvent from '@testing-library\u002Fuser-event';\nimport { UserProfile } from '.\u002FUserProfile';\nimport * as api from '.\u002Fapi';\n\njest.mock('.\u002Fapi');\n\ndescribe('UserProfile Async', () => {\n  it('loads and displays user data', async () => {\n    const mockUser = { id: 1, name: 'Alice', email: 'alice@example.com' };\n    jest.mocked(api.fetchUser).mockResolvedValue(mockUser);\n\n    render(\u003CUserProfile userId={1} \u002F>);\n\n    expect(screen.getByText('Loading...')).toBeInTheDocument();\n\n    await waitFor(() => {\n      expect(screen.getByText('Alice')).toBeInTheDocument();\n    });\n\n    expect(screen.getByText('alice@example.com')).toBeInTheDocument();\n  });\n\n  it('displays error on fetch failure', async () => {\n    jest.mocked(api.fetchUser).mockRejectedValue(new Error('Network error'));\n\n    render(\u003CUserProfile userId={1} \u002F>);\n\n    await waitFor(() => {\n      expect(screen.getByText(\u002Ferror\u002Fi)).toBeInTheDocument();\n    });\n  });\n});\n```\n\n## Snapshot Testing\n\n### Component Snapshots\n\n```typescript\nimport { render } from '@testing-library\u002Freact';\nimport { UserCard } from '.\u002FUserCard';\n\ndescribe('UserCard Snapshots', () => {\n  it('matches snapshot for regular user', () => {\n    const { container } = render(\n      \u003CUserCard\n        name=\"Alice\"\n        email=\"alice@example.com\"\n        role=\"user\"\n      \u002F>\n    );\n\n    expect(container.firstChild).toMatchSnapshot();\n  });\n\n  it('matches snapshot for admin user', () => {\n    const { container } = render(\n      \u003CUserCard\n        name=\"Bob\"\n        email=\"bob@example.com\"\n        role=\"admin\"\n      \u002F>\n    );\n\n    expect(container.firstChild).toMatchSnapshot();\n  });\n\n  it('uses inline snapshot', () => {\n    const user = { id: 1, name: 'Charlie', role: 'user' };\n\n    expect(user).toMatchInlineSnapshot(`\n      {\n        \"id\": 1,\n        \"name\": \"Charlie\",\n        \"role\": \"user\",\n      }\n    `);\n  });\n});\n```\n\n### Updating Snapshots\n\n```bash\n# Update all snapshots\njest --updateSnapshot\njest -u\n\n# Update snapshots for specific test file\njest UserCard.test.tsx -u\n\n# Interactive snapshot update\njest --watch\n# Press 'u' to update failing snapshots\n```\n\n### Custom Snapshot Serializers\n\n```typescript\n\u002F\u002F __tests__\u002Fserializers\u002FdateSerializer.ts\nexport default {\n  test: (val: any) => val instanceof Date,\n  print: (val: Date) => `Date(${val.toISOString()})`,\n};\n```\n\n**jest.config.ts**:\n```typescript\nconst config: Config = {\n  snapshotSerializers: ['\u003CrootDir>\u002F__tests__\u002Fserializers\u002FdateSerializer.ts'],\n};\n```\n\n## Async Testing\n\n### Testing Promises\n\n```typescript\nimport { fetchData, saveData } from '.\u002Fapi';\n\ndescribe('Async Operations', () => {\n  it('resolves with data', async () => {\n    const data = await fetchData(1);\n    expect(data).toBeDefined();\n    expect(data.id).toBe(1);\n  });\n\n  it('handles promise rejection', async () => {\n    await expect(fetchData(-1)).rejects.toThrow('Invalid ID');\n  });\n\n  it('uses resolves matcher', async () => {\n    await expect(fetchData(1)).resolves.toHaveProperty('id', 1);\n  });\n\n  it('tests 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(expect.any(Number));\n  });\n});\n```\n\n### Testing Callbacks\n\n```typescript\ndescribe('Callback Testing', () => {\n  it('calls callback with correct arguments', (done) => {\n    function fetchWithCallback(id: number, callback: (data: any) => void) {\n      setTimeout(() => {\n        callback({ id, name: 'Test' });\n      }, 100);\n    }\n\n    fetchWithCallback(1, (data) => {\n      try {\n        expect(data.id).toBe(1);\n        expect(data.name).toBe('Test');\n        done();\n      } catch (error) {\n        done(error);\n      }\n    });\n  });\n});\n```\n\n## Coverage Configuration\n\n### Advanced Coverage Setup\n\n**jest.config.ts**:\n```typescript\nconst config: Config = {\n  collectCoverage: true,\n  coverageDirectory: 'coverage',\n  coverageProvider: 'v8', \u002F\u002F or 'babel' for compatibility\n  coverageReporters: ['text', 'lcov', 'html', 'json'],\n  collectCoverageFrom: [\n    'src\u002F**\u002F*.{ts,tsx}',\n    '!src\u002F**\u002F*.d.ts',\n    '!src\u002F**\u002F*.test.{ts,tsx}',\n    '!src\u002F**\u002F__tests__\u002F**',\n    '!src\u002Findex.ts',\n    '!src\u002Ftypes\u002F**',\n  ],\n  coverageThreshold: {\n    global: {\n      branches: 80,\n      functions: 80,\n      lines: 80,\n      statements: 80,\n    },\n    '.\u002Fsrc\u002Fcore\u002F': {\n      branches: 90,\n      functions: 90,\n      lines: 90,\n      statements: 90,\n    },\n  },\n  coveragePathIgnorePatterns: [\n    '\u002Fnode_modules\u002F',\n    '\u002Fdist\u002F',\n    '\u002F__tests__\u002F',\n  ],\n};\n```\n\n### Running Coverage\n\n```bash\n# Generate coverage report\nnpm test -- --coverage\n\n# Coverage with watch mode\nnpm test -- --coverage --watch\n\n# Coverage for specific files\nnpm test -- --coverage --collectCoverageFrom=\"src\u002Fcomponents\u002F**\u002F*.tsx\"\n\n# View HTML report\nopen coverage\u002Flcov-report\u002Findex.html\n```\n\n## Migration from Vitest\n\n### Key Differences\n\n**API Changes**:\n```typescript\n\u002F\u002F Vitest\nimport { vi } from 'vitest';\nconst mockFn = vi.fn();\nvi.spyOn(obj, 'method');\n\n\u002F\u002F Jest\nimport { jest } from '@jest\u002Fglobals';\nconst mockFn = jest.fn();\njest.spyOn(obj, 'method');\n```\n\n### Migration Checklist\n\n**1. Update Dependencies**:\n```bash\nnpm uninstall vitest @vitest\u002Fui\nnpm install -D jest @types\u002Fjest ts-jest\n```\n\n**2. Update package.json**:\n```json\n{\n  \"scripts\": {\n    \"test\": \"jest\",           \u002F\u002F Was: vitest run\n    \"test:watch\": \"jest --watch\"  \u002F\u002F Was: vitest\n  }\n}\n```\n\n**3. Replace vitest.config.ts with jest.config.ts**:\n```typescript\n\u002F\u002F Old: vitest.config.ts\nimport { defineConfig } from 'vitest\u002Fconfig';\nexport default defineConfig({\n  test: {\n    globals: true,\n    environment: 'jsdom',\n  },\n});\n\n\u002F\u002F New: jest.config.ts\nimport type { Config } from 'jest';\nconst config: Config = {\n  preset: 'ts-jest',\n  testEnvironment: 'jsdom',\n  globals: {\n    'ts-jest': {\n      isolatedModules: true,\n    },\n  },\n};\nexport default config;\n```\n\n**4. Update Test Files**:\n```typescript\n\u002F\u002F Change imports\n- import { vi } from 'vitest';\n+ import { jest } from '@jest\u002Fglobals';\n\n\u002F\u002F Update mocks\n- vi.fn()\n+ jest.fn()\n\n- vi.spyOn()\n+ jest.spyOn()\n\n- vi.mock()\n+ jest.mock()\n\n\u002F\u002F Timer mocks\n- vi.useFakeTimers()\n+ jest.useFakeTimers()\n\n- vi.advanceTimersByTime()\n+ jest.advanceTimersByTime()\n```\n\n**5. Update tsconfig.json**:\n```json\n{\n  \"compilerOptions\": {\n    \"types\": [\"jest\", \"@testing-library\u002Fjest-dom\"]  \u002F\u002F Was: vitest\u002Fglobals\n  }\n}\n```\n\n## Jest vs Vitest Comparison\n\n### Performance\n\n**Jest**:\n- Slower initial startup (no HMR)\n- Sequential test execution by default\n- 1-5 seconds for medium projects\n\n**Vitest**:\n- Instant HMR-based execution\n- Parallel by default\n- 100-500ms for same projects\n\n### Ecosystem\n\n**Jest**:\n- ✅ 70% market share\n- ✅ Mature ecosystem (8+ years)\n- ✅ More Stack Overflow answers\n- ✅ Better corporate support\n\n**Vitest**:\n- ✅ Modern, growing adoption\n- ✅ Vite-native integration\n- ⚠️ Smaller ecosystem\n- ⚠️ Fewer resources\n\n### TypeScript Support\n\n**Jest**:\n- Requires ts-jest configuration\n- Extra transform step\n- Slower compilation\n\n**Vitest**:\n- Built-in TypeScript support\n- No configuration needed\n- Faster through Vite\n\n### When to Use Jest\n\nChoose Jest for:\n- ✅ Existing projects already using Jest\n- ✅ Corporate environments requiring proven tools\n- ✅ Projects requiring extensive ecosystem support\n- ✅ React projects with Create React App\n- ✅ Non-Vite build systems (Webpack, Rollup)\n\nChoose Vitest for:\n- ✅ New projects with modern tooling\n- ✅ Vite-based applications\n- ✅ Performance-critical test suites\n- ✅ ESM-first projects\n\n## Best Practices\n\n1. **Use TypeScript Configuration**: Type-safe tests prevent runtime errors\n2. **Mock External Dependencies**: Network, file system, databases\n3. **Isolate Tests**: Each test should be independent\n4. **Use describe Blocks**: Group related tests logically\n5. **Clear Mock State**: Use `jest.clearAllMocks()` in `beforeEach`\n6. **Test Edge Cases**: Empty arrays, null, undefined, errors\n7. **Use .each for Data-Driven Tests**: Test multiple inputs efficiently\n8. **Avoid Testing Implementation**: Test behavior, not internal structure\n9. **Keep Tests Fast**: Mock slow operations, use parallel execution\n10. **Maintain Coverage Thresholds**: Enforce minimum coverage in CI\n\n## Common Pitfalls\n\n❌ **Not clearing mocks between tests**:\n```typescript\n\u002F\u002F WRONG - mocks leak between tests\nit('test 1', () => {\n  jest.spyOn(api, 'fetch');\n  \u002F\u002F No cleanup!\n});\n\n\u002F\u002F CORRECT\nafterEach(() => {\n  jest.restoreAllMocks();\n});\n```\n\n❌ **Forgetting to await async tests**:\n```typescript\n\u002F\u002F WRONG - test completes before assertion\nit('fetches data', () => {\n  fetchData().then(data => {\n    expect(data).toBeDefined();  \u002F\u002F Never runs!\n  });\n});\n\n\u002F\u002F CORRECT\nit('fetches data', async () => {\n  const data = await fetchData();\n  expect(data).toBeDefined();\n});\n```\n\n❌ **Using wrong test environment**:\n```typescript\n\u002F\u002F WRONG - testing DOM without jsdom\n\u002F\u002F jest.config.ts\ntestEnvironment: 'node',  \u002F\u002F Can't test React!\n\n\u002F\u002F CORRECT\ntestEnvironment: 'jsdom',\n```\n\n❌ **Not using TypeScript types for mocks**:\n```typescript\n\u002F\u002F WRONG - no type safety\nconst mockFn = jest.fn();\n\n\u002F\u002F CORRECT\nconst mockFn = jest.fn\u003C(id: number) => Promise\u003CUser>>();\n```\n\n## Resources\n\n- **Documentation**: https:\u002F\u002Fjestjs.io\u002Fdocs\u002Fgetting-started\n- **TypeScript Guide**: https:\u002F\u002Fjestjs.io\u002Fdocs\u002Fgetting-started#using-typescript\n- **ts-jest**: https:\u002F\u002Fkulshekhar.github.io\u002Fts-jest\u002F\n- **React Testing Library**: https:\u002F\u002Ftesting-library.com\u002Fdocs\u002Freact-testing-library\u002Fintro\u002F\n- **Jest DOM Matchers**: https:\u002F\u002Fgithub.com\u002Ftesting-library\u002Fjest-dom\n\n## Related Skills\n\nWhen using Jest, consider these complementary skills:\n\n- **typescript-core**: Advanced TypeScript patterns, tsconfig optimization, and type safety\n- **react**: React component testing patterns with Testing Library\n- **vitest**: Modern alternative with Vite-native performance and faster execution\n\n### Quick TypeScript Type Safety Reference (Inlined for Standalone Use)\n\n```typescript\n\u002F\u002F Type-safe test helpers with generics\nfunction createMockUser\u003CT extends Partial\u003CUser>>(overrides: T): User & T {\n  return {\n    id: 1,\n    name: 'Test User',\n    email: 'test@example.com',\n    ...overrides\n  };\n}\n\n\u002F\u002F Usage with type inference\nconst adminUser = createMockUser({ role: 'admin' });\n\u002F\u002F Type: User & { role: string }\n\n\u002F\u002F Type-safe mock functions\nconst mockFetch = jest.fn\u003Ctypeof fetch>();\nmockFetch.mockResolvedValue(new Response('{}'));\n\n\u002F\u002F Const type parameters for literal types\nconst createConfig = \u003Cconst T extends Record\u003Cstring, unknown>>(config: T): T => config;\nconst testConfig = createConfig({ environment: 'test', debug: true });\n\u002F\u002F Type: { environment: \"test\"; debug: true } (literals preserved)\n```\n\n### Quick React Testing Patterns (Inlined for Standalone Use)\n\n```typescript\n\u002F\u002F React Testing Library with Jest\nimport { render, screen, fireEvent, waitFor } from '@testing-library\u002Freact';\nimport userEvent from '@testing-library\u002Fuser-event';\nimport '@testing-library\u002Fjest-dom';\n\n\u002F\u002F Component testing pattern\ndescribe('UserProfile', () => {\n  it('should display user information', () => {\n    const user = { id: 1, name: 'Alice', email: 'alice@example.com' };\n    render(\u003CUserProfile user={user} \u002F>);\n\n    expect(screen.getByText('Alice')).toBeInTheDocument();\n    expect(screen.getByText('alice@example.com')).toBeInTheDocument();\n  });\n\n  it('should handle user interactions', async () => {\n    const onSubmit = jest.fn();\n    render(\u003CUserForm onSubmit={onSubmit} \u002F>);\n\n    \u002F\u002F User interactions\n    await userEvent.type(screen.getByLabelText('Name'), 'Bob');\n    await userEvent.click(screen.getByRole('button', { name: 'Submit' }));\n\n    await waitFor(() => {\n      expect(onSubmit).toHaveBeenCalledWith({ name: 'Bob' });\n    });\n  });\n});\n\n\u002F\u002F Hook testing\nimport { renderHook, act } from '@testing-library\u002Freact';\n\ntest('useCounter hook', () => {\n  const { result } = renderHook(() => useCounter(0));\n\n  expect(result.current.count).toBe(0);\n\n  act(() => {\n    result.current.increment();\n  });\n\n  expect(result.current.count).toBe(1);\n});\n\n\u002F\u002F Context and Provider testing\nconst wrapper = ({ children }: { children: React.ReactNode }) => (\n  \u003CAuthProvider>{children}\u003C\u002FAuthProvider>\n);\n\ntest('useAuth hook with context', () => {\n  const { result } = renderHook(() => useAuth(), { wrapper });\n  expect(result.current.user).toBeDefined();\n});\n```\n\n### Quick Vitest Comparison (Inlined for Standalone Use)\n\n**When to Choose Vitest over Jest:**\n- New Vite\u002FVite-based projects (Next.js with Turbopack, SvelteKit)\n- Need faster test execution (10-100x faster)\n- ESM-first architecture\n- Hot Module Replacement for tests\n\n**When to Stick with Jest:**\n- Existing large codebases with Jest already configured\n- Corporate environments with established Jest workflows\n- Need mature ecosystem and extensive plugins\n- React apps with Create React App (default Jest setup)\n\n**Migration Snippet (Jest → Vitest):**\n```typescript\n\u002F\u002F Jest: import from '@testing-library\u002Fjest-dom'\nimport '@testing-library\u002Fjest-dom';\n\n\u002F\u002F Vitest: import from vitest globals\nimport { expect, test, describe } from 'vitest';\nimport { screen } from '@testing-library\u002Freact';\n\n\u002F\u002F Most Jest syntax works in Vitest unchanged\ntest('component renders', () => {\n  render(\u003CComponent \u002F>);\n  expect(screen.getByText('Hello')).toBeTruthy();\n});\n```\n\n[Full TypeScript, React, and Vitest patterns available in respective skills if deployed together]\n\n## Summary\n\n- **Jest** is the industry standard with 70% market share\n- **TypeScript support** via ts-jest with full type safety\n- **All-in-one solution**: Test runner, assertions, mocks, coverage\n- **React Testing Library** integration for component testing\n- **Mature ecosystem** with extensive tooling and support\n- **Snapshot testing** for UI regression testing\n- **Migration path** from Vitest with compatible API\n- **Perfect for**: Existing projects, corporate environments, React apps, legacy support\n- **Trade-off**: Slower than Vitest but more mature and widely supported\n",{"name":5,"tags":24,"author":30,"license":15,"version":31,"category":32,"description":7,"context_limit":33,"requires_tools":34,"progressive_disclosure":35},[25,26,27,28,29],"testing","jest","typescript","react-testing-library","legacy","Claude MPM Team","1.0.0","toolchain",700,[],{"entry_point":36},{"summary":37,"quick_start":38,"when_to_use":39},"TypeScript testing with Jest - industry standard testing framework with mature ecosystem, React Testing Library, snapshot testing, built-in coverage","1. npm install -D jest @types\u002Fjest ts-jest 2. npx ts-jest config:init 3. Create *.test.ts files 4. npm test","Testing existing Jest projects, React\u002FNode.js with TypeScript, using Jest ecosystem tools, migrating from JavaScript to TypeScript, legacy project support","main","590aa4fe05d1ec71a02ee9cc76c9a20508b5bcea","skills\u002Fju\u002Fskills\u002Fjest-typescript","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha","https:\u002F\u002Fgithub.com\u002Fjulio211916","Estudiante de ing sistemas y psicologia","2026-05-22 04:43:54",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add julio211916\u002FTlantiCAD-Studio-V0.1-alpha --skill jest-typescript",{"tool":53,"command":54},"bunx","bunx skills add julio211916\u002FTlantiCAD-Studio-V0.1-alpha --skill jest-typescript",{"tool":56,"command":57},"pnpm","pnpm dlx skills add julio211916\u002FTlantiCAD-Studio-V0.1-alpha --skill jest-typescript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fjest-typescript\u002FSKILL.md",true,[],[62,69,76,83,90,97],{"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},"01M735PMP7K29TEC1BC5A3VJ3Z","simpy","Process-based discrete-event simulation framework in Python. Use this skill when building simulations of systems with processes, queues, resources, and time-based events such as manufacturing systems, service operations, network traffic, logistics, or any system where entities interact with shared resources over time.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fsimpy\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},"01M735NX56AZHYMV3BQ8GYZ7J0","shopify-expert","Builds and debugs Shopify themes (.liquid files, theme.json, sections), develops custom Shopify apps (shopify.app.toml, OAuth, webhooks), and implements Storefront API integrations for headless storefronts. Use when building or customizing Shopify themes, creating Hydrogen or custom React storefronts, developing Shopify apps, implementing checkout UI extensions or Shopify Functions, optimizing performance, or integrating third-party services. Invoke for Liquid templating, Storefront API, app development, checkout customization, Shopify Plus features, App Bridge, Polaris, or Shopify CLI workflows.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fshopify-expert\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},"01M735N9WTN69TVA2T5VS9W1CA","shap","Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fshap\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},"01M735N3VQ8R56TXFF16BMF19H","shadcn-ui","Deep expertise on shadcn\u002Fui component library including installation, customization, theming, and accessibility patterns. Use when building UI with shadcn\u002Fui components, integrating Radix UI primitives, configuring Tailwind CSS v4 themes, or implementing dark mode. Covers Next.js App Router, Pages Router, and Vite setups.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fshadcn-ui\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":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M735KH64KS6Z58H6BJWX89BV","seoul-subway-arrival","Look up Seoul real-time subway arrival information with the official Seoul Open Data API. Use when the user asks when a train arrives, which trains are approaching a station, or how crowded Seoul subway timing looks right now.","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fseoul-subway-arrival\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":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M735K7KAFBZNACQ66PMDQMQD","seo-optimization","Comprehensive 7-phase SEO optimization workflow covering technical SEO auditing, keyword research strategy, on-page optimization, content SEO and E-E-A-T, structured data implementation, link building, and AI search optimization. Use when auditing search engine visibility, diagnosing ranking issues, implementing schema markup, conducting keyword research, optimizing content for E-E-A-T signals, or adapting for AI-driven search (AI Overviews, SGE).","https:\u002F\u002Fgithub.com\u002Fjulio211916\u002FTlantiCAD-Studio-V0.1-alpha\u002Fblob\u002Fmain\u002Fskills\u002Fju\u002Fskills\u002Fseo-optimization\u002FSKILL.md",[],[]]