[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AE4DCQZ7B8KQ7FFQFVWWA2":3,"skill-same:01M6AE4DCQZ7B8KQ7FFQFVWWA2":77},{"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":26,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6AE4DCQZ7B8KQ7FFQFVWWA2","react19-test-patterns",null,"Provides before\u002Fafter patterns for migrating test files to React 19 compatibility, including act() imports, Simulate removal, and StrictMode call count changes.","github\u002Fawesome-copilot","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD3PBDYPK7NVFJNJ66Y8RS",41046,"MIT","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Freact19-test-patterns\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"test","react19 test patterns","patterns","test patterns","react","files","compatibility","call","act","react 19","for","changes","imports","simulate","count","2026-11-10 10:12:30",false,"---\nname: react19-test-patterns\ndescription: 'Provides before\u002Fafter patterns for migrating test files to React 19 compatibility, including act() imports, Simulate removal, and StrictMode call count changes.'\n---\n\n# React 19 Test Migration Patterns\n\nReference for all test file migrations required by React 19.\n\n## Priority Order\n\nFix test files in this order; each layer depends on the previous:\n\n1. **`act` import**  fix first, it unblocks everything else\n2. **`Simulate` → `fireEvent`**  fix immediately after act\n3. **Full react-dom\u002Ftest-utils cleanup**  remove remaining imports\n4. **StrictMode call counts**  measure actual, don't guess\n5. **Async act wrapping**  for remaining \"not wrapped in act\" warnings\n6. **Custom render helper**  verify once per codebase, not per test\n\n---\n\n## 1. act() Import Fix\n\n```jsx\n\u002F\u002F Before  REMOVED in React 19:\nimport { act } from 'react-dom\u002Ftest-utils';\n\n\u002F\u002F After:\nimport { act } from 'react';\n```\n\nIf mixed with other test-utils imports:\n```jsx\n\u002F\u002F Before:\nimport { act, Simulate, renderIntoDocument } from 'react-dom\u002Ftest-utils';\n\n\u002F\u002F After  split the imports:\nimport { act } from 'react';\nimport { fireEvent, render } from '@testing-library\u002Freact'; \u002F\u002F replaces Simulate + renderIntoDocument\n```\n\n---\n\n## 2. Simulate → fireEvent\n\n```jsx\n\u002F\u002F Before  Simulate REMOVED in React 19:\nimport { Simulate } from 'react-dom\u002Ftest-utils';\nSimulate.click(element);\nSimulate.change(input, { target: { value: 'hello' } });\nSimulate.submit(form);\nSimulate.keyDown(element, { key: 'Enter', keyCode: 13 });\n\n\u002F\u002F After:\nimport { fireEvent } from '@testing-library\u002Freact';\nfireEvent.click(element);\nfireEvent.change(input, { target: { value: 'hello' } });\nfireEvent.submit(form);\nfireEvent.keyDown(element, { key: 'Enter', keyCode: 13 });\n```\n\n---\n\n## 3. react-dom\u002Ftest-utils Full API Map\n\n| Old (react-dom\u002Ftest-utils) | New location |\n|---|---|\n| `act` | `import { act } from 'react'` |\n| `Simulate` | `fireEvent` from `@testing-library\u002Freact` |\n| `renderIntoDocument` | `render` from `@testing-library\u002Freact` |\n| `findRenderedDOMComponentWithTag` | `getByRole`, `getByTestId` from RTL |\n| `findRenderedDOMComponentWithClass` | `getByRole` or `container.querySelector` |\n| `scryRenderedDOMComponentsWithTag` | `getAllByRole` from RTL |\n| `isElement`, `isCompositeComponent` | Remove  not needed with RTL |\n| `isDOMComponent` | Remove |\n\n---\n\n## 4. StrictMode Call Count Fixes\n\nReact 19 StrictMode no longer double-invokes `useEffect` in development. Spy assertions counting effect calls must be updated.\n\n**Strategy  always measure, never guess:**\n```bash\n# Run the failing test, read the actual count from the error:\nnpm test -- --watchAll=false --testPathPattern=\"[filename]\" --forceExit 2>&1 | grep -E \"Expected|Received\"\n```\n\n```jsx\n\u002F\u002F Before (React 18 StrictMode  effects ran twice):\nexpect(mockFn).toHaveBeenCalledTimes(2);  \u002F\u002F 1 call × 2 (strict double-invoke)\n\n\u002F\u002F After (React 19 StrictMode  effects run once):\nexpect(mockFn).toHaveBeenCalledTimes(1);\n```\n\n```jsx\n\u002F\u002F Render-phase calls (component body)  still double-invoked in React 19 StrictMode:\nexpect(renderSpy).toHaveBeenCalledTimes(2);  \u002F\u002F stays at 2 for render body calls\n```\n","# React 19 Test Migration Patterns\n\nReference for all test file migrations required by React 19.\n\n## Priority Order\n\nFix test files in this order; each layer depends on the previous:\n\n1. **`act` import**  fix first, it unblocks everything else\n2. **`Simulate` → `fireEvent`**  fix immediately after act\n3. **Full react-dom\u002Ftest-utils cleanup**  remove remaining imports\n4. **StrictMode call counts**  measure actual, don't guess\n5. **Async act wrapping**  for remaining \"not wrapped in act\" warnings\n6. **Custom render helper**  verify once per codebase, not per test\n\n---\n\n## 1. act() Import Fix\n\n```jsx\n\u002F\u002F Before  REMOVED in React 19:\nimport { act } from 'react-dom\u002Ftest-utils';\n\n\u002F\u002F After:\nimport { act } from 'react';\n```\n\nIf mixed with other test-utils imports:\n```jsx\n\u002F\u002F Before:\nimport { act, Simulate, renderIntoDocument } from 'react-dom\u002Ftest-utils';\n\n\u002F\u002F After  split the imports:\nimport { act } from 'react';\nimport { fireEvent, render } from '@testing-library\u002Freact'; \u002F\u002F replaces Simulate + renderIntoDocument\n```\n\n---\n\n## 2. Simulate → fireEvent\n\n```jsx\n\u002F\u002F Before  Simulate REMOVED in React 19:\nimport { Simulate } from 'react-dom\u002Ftest-utils';\nSimulate.click(element);\nSimulate.change(input, { target: { value: 'hello' } });\nSimulate.submit(form);\nSimulate.keyDown(element, { key: 'Enter', keyCode: 13 });\n\n\u002F\u002F After:\nimport { fireEvent } from '@testing-library\u002Freact';\nfireEvent.click(element);\nfireEvent.change(input, { target: { value: 'hello' } });\nfireEvent.submit(form);\nfireEvent.keyDown(element, { key: 'Enter', keyCode: 13 });\n```\n\n---\n\n## 3. react-dom\u002Ftest-utils Full API Map\n\n| Old (react-dom\u002Ftest-utils) | New location |\n|---|---|\n| `act` | `import { act } from 'react'` |\n| `Simulate` | `fireEvent` from `@testing-library\u002Freact` |\n| `renderIntoDocument` | `render` from `@testing-library\u002Freact` |\n| `findRenderedDOMComponentWithTag` | `getByRole`, `getByTestId` from RTL |\n| `findRenderedDOMComponentWithClass` | `getByRole` or `container.querySelector` |\n| `scryRenderedDOMComponentsWithTag` | `getAllByRole` from RTL |\n| `isElement`, `isCompositeComponent` | Remove  not needed with RTL |\n| `isDOMComponent` | Remove |\n\n---\n\n## 4. StrictMode Call Count Fixes\n\nReact 19 StrictMode no longer double-invokes `useEffect` in development. Spy assertions counting effect calls must be updated.\n\n**Strategy  always measure, never guess:**\n```bash\n# Run the failing test, read the actual count from the error:\nnpm test -- --watchAll=false --testPathPattern=\"[filename]\" --forceExit 2>&1 | grep -E \"Expected|Received\"\n```\n\n```jsx\n\u002F\u002F Before (React 18 StrictMode  effects ran twice):\nexpect(mockFn).toHaveBeenCalledTimes(2);  \u002F\u002F 1 call × 2 (strict double-invoke)\n\n\u002F\u002F After (React 19 StrictMode  effects run once):\nexpect(mockFn).toHaveBeenCalledTimes(1);\n```\n\n```jsx\n\u002F\u002F Render-phase calls (component body)  still double-invoked in React 19 StrictMode:\nexpect(renderSpy).toHaveBeenCalledTimes(2);  \u002F\u002F stays at 2 for render body calls\n```\n",{"name":5,"description":7},"main","5269f7ea2d6c3a9bfda5ed878b6726cf509121fd","skills\u002Freact19-test-patterns",5340,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot","https:\u002F\u002Fawesome-copilot.github.com\u002F","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-11 13:41:32",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add github\u002Fawesome-copilot --skill react19-test-patterns",{"tool":63,"command":64},"bunx","bunx skills add github\u002Fawesome-copilot --skill react19-test-patterns",{"tool":66,"command":67},"pnpm","pnpm dlx skills add github\u002Fawesome-copilot --skill react19-test-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Freact19-test-patterns\u002FSKILL.md",true,[71],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"agents\u002Fopenai.yaml","REFERENCE","参考文档",197,"https:\u002F\u002Fgithub.com\u002Falexjercan\u002Fnix.dotfiles\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fpair\u002Fagents\u002Fopenai.yaml",[78,109,136,166,200,217],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":88,"publishedAt":42},"01M70KXZNX9ES38N2A8M58ZZMZ","supabase-rls-policies","Write, review, and test Supabase Row Level Security (RLS) policies so that one user cannot read or change another user's rows. Use when creating or changing tables, policies, views, or security definer functions in a Supabase project, when reviewing a migration that touches RLS, or when asked to prove user isolation with pgTAP tests that sign in as two users.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fsupabase-rls-policies\u002FSKILL.md",[84,85],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":86,"categoryName":87,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108],"supabase","rls","supabase rls","supabase rls policies","project","when","review","change","read","write","security","isolation","tables","as","tests","prove","use","users","functions","with",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":116,"publishedAt":42},"01M70KWA5YWXDV6V8DZ19E3T2Y","skill-distribution-audit","Audit a skill collection before release or investigate installer omissions, archived\u002Ftemplate leakage, duplicate identities, and manifest drift. Reconcile the intended public source set, distribution manifest, and actual discovery output for a specified consumer version. Includes a deterministic set-comparison helper.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fskill-distribution-audit\u002FSKILL.md",[115],{"categoryNo":86,"categoryName":87,"taxonomyType":21,"taxonomyTypeDesc":22},[117,118,119,120,121,122,37,123,124,125,126,127,128,129,130,131,132,133,134,135],"distribution","skill distribution audit","audit","SET","deterministic","installer","discovery","comparison","helper","manifest","version","collection","drift","output","investigate","duplicate","template","release","reconcile",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":140,"sourceHtmlUrl":141,"categories":142,"keywords":148,"publishedAt":42},"01M70KCJPFVW7PPQ49CC5R8JGK","logicapps-custom-code-net10-migration","Migrate Azure Logic Apps Standard local-function custom-code projects from .NET 8 to .NET 10. Use for legacy Logic Apps custom-code workspace upgrades, project\u002Fpackage configuration, custom-worker settings, publication, and integrated VS Code debugging. Not for ordinary .NET applications, standalone Azure Functions, Consumption workflows, or cloud deployment.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Flogicapps-custom-code-net10-migration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Flogicapps-custom-code-net10-migration\u002FSKILL.md",[143],{"categoryNo":144,"categoryName":145,"taxonomyType":146,"taxonomyTypeDesc":147},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[149,150,151,152,153,154,37,93,155,156,157,158,159,160,161,105,162,163,164,165],"custom","code","logicapps custom code net10 migration","migration","projects","standalone","deployment","applications","local","azure","worker","upgrades","package","apps","Legacy","debugging","workflows",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":170,"sourceHtmlUrl":171,"categories":172,"keywords":177,"publishedAt":42},"01M6AEBN37RQMXJ3298PEY7PG1","winmd-api-search","Find and explore Windows desktop APIs. Use when building features that need platform capabilities — camera, file access, notifications, UI controls, AI\u002FML, sensors, networking, etc. Discovers the right API for a task and retrieves full type details (methods, properties, events, enumeration values).","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fwinmd-api-search\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fwinmd-api-search\u002FSKILL.md",[173,176],{"categoryNo":174,"categoryName":175,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":144,"categoryName":145,"taxonomyType":146,"taxonomyTypeDesc":147},[178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,94,193,194,195,196,197,37,198,199],"winmd api search","search","api","windows","desktop","file access","enumeration","ui","ml","file","networking","capabilities","notifications","explore","access","features","full","camera","events","platform","methods","controls",{"skillNo":201,"name":202,"nameZh":6,"description":203,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":204,"licenseFileUrl":205,"sourceHtmlUrl":206,"categories":207,"keywords":213,"publishedAt":42},"01M6AE571R3SC1ZGE202B3NB5S","resemble-detect","Deepfake detection and media safety — detect AI-generated audio, images, video, and text, trace synthesis sources, apply watermarks, verify speaker identity, and analyze media intelligence using Resemble AI","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fresemble-detect\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fresemble-detect\u002FSKILL.md",[208,209,212],{"categoryNo":174,"categoryName":175,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":210,"categoryName":211,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":86,"categoryName":87,"taxonomyType":21,"taxonomyTypeDesc":22},[214,120,187,215,216],"resemble detect","https","identity",{"skillNo":218,"name":219,"nameZh":6,"description":220,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":204,"licenseFileUrl":221,"sourceHtmlUrl":222,"categories":223,"keywords":228,"publishedAt":42},"01M6AE30BSK2HCY4TQQ22Z8JRD","quality-playbook","Run a complete quality engineering audit on any codebase. Derives behavioral requirements from the code, generates spec-traced functional tests, runs a three-pass code review with regression tests, executes a multi-model spec audit (Council of Three), and produces a consolidated bug report with TDD-verified patches. Finds the 35% of real defects that structural code review alone cannot catch. Works with any language. Trigger on 'quality playbook', 'spec audit', 'Council of Three', 'fitness-to-purpose', or 'coverage theater'.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fquality-playbook\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fquality-playbook\u002FSKILL.md",[224,227],{"categoryNo":225,"categoryName":226,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":86,"categoryName":87,"taxonomyType":21,"taxonomyTypeDesc":22},[229,230,231,232,150,95,9,119,233,234,215,235,236,237,238,239,240,241,242,243,244,245,103,246,247,248,249],"playbook","quality playbook","quality","code review","tdd","run","report","spec","bug report","council","engineering","functional","spec audit","bug","verified","multi-model","three","coverage","model","regression","structural"]