[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AE3WF2P3DRTF434H3JPV3E":3,"skill-same:01M6AE3WF2P3DRTF434H3JPV3E":93},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":54,"linkOnly":55,"markdownContent":56,"markdownBody":57,"frontMatter":58,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6AE3WF2P3DRTF434H3JPV3E","react18-enzyme-to-rtl","Enzyme 到 RTL 测试迁移","Provides exact Enzyme → React Testing Library migration patterns for React 18 upgrades. Use this skill whenever Enzyme tests need to be rewritten - shallow, mount, wrapper.find(), wrapper.simulate(), wrapper.prop(), wrapper.state(), wrapper.instance(), Enzyme configure\u002FAdapter calls, or any test file that imports from enzyme. This skill covers the full API mapping and the philosophy shift from implementation testing to behavior testing. Always read this skill before rewriting Enzyme tests - do not translate Enzyme APIs 1:1, that produces brittle RTL tests.","为 React 18 升级提供精确的 Enzyme → React Testing Library 迁移模式。每当需要重写 Enzyme 测试时使用本技能——包括 shallow、mount、wrapper.find()、wrapper.simulate()、wrapper.prop()、wrapper.state()、wrapper.instance()、Enzyme configure\u002FAdapter 调用，或任何从 enzyme 导入的测试文件。本技能涵盖完整 API 映射，以及从实现测试到行为测试的理念转变。重写 Enzyme 测试前务必先阅读本技能——不要将 Enzyme API 1:1 直译，那会产生脆弱的 RTL 测试。","github\u002Fawesome-copilot","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD3PBDYPK7NVFJNJ66Y8RS",41162,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Freact18-enzyme-to-rtl\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],"react18 enzyme to rtl","enzyme to rtl","configure","imports","for","react testing library","mapping","full","philosophy","patterns","do","react testing","Wrapper","read","testing","api","file","library","testing library","state","react","test","translate","2026-11-10 10:12:30",false,"---\nname: react18-enzyme-to-rtl\ndescription: 'Provides exact Enzyme → React Testing Library migration patterns for React 18 upgrades. Use this skill whenever Enzyme tests need to be rewritten - shallow, mount, wrapper.find(), wrapper.simulate(), wrapper.prop(), wrapper.state(), wrapper.instance(), Enzyme configure\u002FAdapter calls, or any test file that imports from enzyme. This skill covers the full API mapping and the philosophy shift from implementation testing to behavior testing. Always read this skill before rewriting Enzyme tests - do not translate Enzyme APIs 1:1, that produces brittle RTL tests.'\n---\n\n# React 18 Enzyme → RTL Migration\n\nEnzyme has no React 18 adapter and no React 18 support path. All Enzyme tests must be rewritten using React Testing Library.\n\n## The Philosophy Shift (Read This First)\n\nEnzyme tests implementation. RTL tests behavior.\n\n```jsx\n\u002F\u002F Enzyme: tests that the component has the right internal state\nexpect(wrapper.state('count')).toBe(3);\nexpect(wrapper.instance().handleClick).toBeDefined();\nexpect(wrapper.find('Button').prop('disabled')).toBe(true);\n\n\u002F\u002F RTL: tests what the user actually sees and can do\nexpect(screen.getByText('Count: 3')).toBeInTheDocument();\nexpect(screen.getByRole('button', { name: \u002Fsubmit\u002Fi })).toBeDisabled();\n```\n\nThis is not a 1:1 translation. Enzyme tests that verify internal state or instance methods don't have RTL equivalents - because RTL intentionally doesn't expose internals. **Rewrite the test to assert the visible outcome instead.**\n\n## API Map\n\nFor complete before\u002Fafter code for each Enzyme API, read:\n- **`references\u002Fenzyme-api-map.md`** - full mapping: shallow, mount, find, simulate, prop, state, instance, configure\n- **`references\u002Fasync-patterns.md`** - waitFor, findBy, act(), Apollo MockedProvider, loading states, error states\n\n## Core Rewrite Template\n\n```jsx\n\u002F\u002F Every Enzyme test rewrites to this shape:\nimport { render, screen, fireEvent, waitFor } from '@testing-library\u002Freact';\nimport userEvent from '@testing-library\u002Fuser-event';\nimport MyComponent from '.\u002FMyComponent';\n\ndescribe('MyComponent', () => {\n  it('does the thing', async () => {\n    \u002F\u002F 1. Render (replaces shallow\u002Fmount)\n    render(\u003CMyComponent prop=\"value\" \u002F>);\n\n    \u002F\u002F 2. Query (replaces wrapper.find())\n    const button = screen.getByRole('button', { name: \u002Fsubmit\u002Fi });\n\n    \u002F\u002F 3. Interact (replaces simulate())\n    await userEvent.setup().click(button);\n\n    \u002F\u002F 4. Assert on visible output (replaces wrapper.state() \u002F wrapper.prop())\n    expect(screen.getByText('Submitted!')).toBeInTheDocument();\n  });\n});\n```\n\n## RTL Query Priority (use in this order)\n\n1. `getByRole` - matches accessible roles (button, textbox, heading, checkbox, etc.)\n2. `getByLabelText` - form fields linked to labels\n3. `getByPlaceholderText` - input placeholders\n4. `getByText` - visible text content\n5. `getByDisplayValue` - current value of input\u002Fselect\u002Ftextarea\n6. `getByAltText` - image alt text\n7. `getByTitle` - title attribute\n8. `getByTestId` - `data-testid` attribute (last resort)\n\nPrefer `getByRole` over `getByTestId`. It tests accessibility too.\n\n## Wrapping with Providers\n\n```jsx\n\u002F\u002F Enzyme with context:\nconst wrapper = mount(\n  \u003CApolloProvider client={client}>\n    \u003CThemeProvider theme={theme}>\n      \u003CMyComponent \u002F>\n    \u003C\u002FThemeProvider>\n  \u003C\u002FApolloProvider>\n);\n\n\u002F\u002F RTL equivalent (use your project's customRender or wrap inline):\nimport { render } from '@testing-library\u002Freact';\nrender(\n  \u003CMockedProvider mocks={mocks} addTypename={false}>\n    \u003CThemeProvider theme={theme}>\n      \u003CMyComponent \u002F>\n    \u003C\u002FThemeProvider>\n  \u003C\u002FMockedProvider>\n);\n\u002F\u002F Or use the project's customRender helper if it wraps providers\n```\n","# React 18 Enzyme → RTL Migration\n\nEnzyme has no React 18 adapter and no React 18 support path. All Enzyme tests must be rewritten using React Testing Library.\n\n## The Philosophy Shift (Read This First)\n\nEnzyme tests implementation. RTL tests behavior.\n\n```jsx\n\u002F\u002F Enzyme: tests that the component has the right internal state\nexpect(wrapper.state('count')).toBe(3);\nexpect(wrapper.instance().handleClick).toBeDefined();\nexpect(wrapper.find('Button').prop('disabled')).toBe(true);\n\n\u002F\u002F RTL: tests what the user actually sees and can do\nexpect(screen.getByText('Count: 3')).toBeInTheDocument();\nexpect(screen.getByRole('button', { name: \u002Fsubmit\u002Fi })).toBeDisabled();\n```\n\nThis is not a 1:1 translation. Enzyme tests that verify internal state or instance methods don't have RTL equivalents - because RTL intentionally doesn't expose internals. **Rewrite the test to assert the visible outcome instead.**\n\n## API Map\n\nFor complete before\u002Fafter code for each Enzyme API, read:\n- **`references\u002Fenzyme-api-map.md`** - full mapping: shallow, mount, find, simulate, prop, state, instance, configure\n- **`references\u002Fasync-patterns.md`** - waitFor, findBy, act(), Apollo MockedProvider, loading states, error states\n\n## Core Rewrite Template\n\n```jsx\n\u002F\u002F Every Enzyme test rewrites to this shape:\nimport { render, screen, fireEvent, waitFor } from '@testing-library\u002Freact';\nimport userEvent from '@testing-library\u002Fuser-event';\nimport MyComponent from '.\u002FMyComponent';\n\ndescribe('MyComponent', () => {\n  it('does the thing', async () => {\n    \u002F\u002F 1. Render (replaces shallow\u002Fmount)\n    render(\u003CMyComponent prop=\"value\" \u002F>);\n\n    \u002F\u002F 2. Query (replaces wrapper.find())\n    const button = screen.getByRole('button', { name: \u002Fsubmit\u002Fi });\n\n    \u002F\u002F 3. Interact (replaces simulate())\n    await userEvent.setup().click(button);\n\n    \u002F\u002F 4. Assert on visible output (replaces wrapper.state() \u002F wrapper.prop())\n    expect(screen.getByText('Submitted!')).toBeInTheDocument();\n  });\n});\n```\n\n## RTL Query Priority (use in this order)\n\n1. `getByRole` - matches accessible roles (button, textbox, heading, checkbox, etc.)\n2. `getByLabelText` - form fields linked to labels\n3. `getByPlaceholderText` - input placeholders\n4. `getByText` - visible text content\n5. `getByDisplayValue` - current value of input\u002Fselect\u002Ftextarea\n6. `getByAltText` - image alt text\n7. `getByTitle` - title attribute\n8. `getByTestId` - `data-testid` attribute (last resort)\n\nPrefer `getByRole` over `getByTestId`. It tests accessibility too.\n\n## Wrapping with Providers\n\n```jsx\n\u002F\u002F Enzyme with context:\nconst wrapper = mount(\n  \u003CApolloProvider client={client}>\n    \u003CThemeProvider theme={theme}>\n      \u003CMyComponent \u002F>\n    \u003C\u002FThemeProvider>\n  \u003C\u002FApolloProvider>\n);\n\n\u002F\u002F RTL equivalent (use your project's customRender or wrap inline):\nimport { render } from '@testing-library\u002Freact';\nrender(\n  \u003CMockedProvider mocks={mocks} addTypename={false}>\n    \u003CThemeProvider theme={theme}>\n      \u003CMyComponent \u002F>\n    \u003C\u002FThemeProvider>\n  \u003C\u002FMockedProvider>\n);\n\u002F\u002F Or use the project's customRender helper if it wraps providers\n```\n",{"name":5,"description":7},"main","5269f7ea2d6c3a9bfda5ed878b6726cf509121fd","skills\u002Freact18-enzyme-to-rtl",5360,"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-15 04:42:30",{"source":9,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add github\u002Fawesome-copilot --skill react18-enzyme-to-rtl",{"tool":75,"command":76},"bunx","bunx skills add github\u002Fawesome-copilot --skill react18-enzyme-to-rtl",{"tool":78,"command":79},"pnpm","pnpm dlx skills add github\u002Fawesome-copilot --skill react18-enzyme-to-rtl","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Freact18-enzyme-to-rtl\u002FSKILL.md",true,[83,89],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fasync-patterns.md","REFERENCE","参考文档",7522,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Freact18-enzyme-to-rtl\u002Freferences\u002Fasync-patterns.md",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fenzyme-api-map.md",6294,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Freact18-enzyme-to-rtl\u002Freferences\u002Fenzyme-api-map.md",[94,102,109,119,145,171],{"skillNo":95,"name":96,"nameZh":17,"description":97,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":101},"01M7B5D8BRA66G07045DF7WDYA","sap-cloud-integration","SAP Cloud Integration (CPI, part of SAP Integration Suite) runtime-specific guidance for building and troubleshooting iFlows. Use when writing or reviewing CPI Groovy scripts, choosing headers vs. exchange properties, designing exception subprocesses, JMS retry, idempotency or data store patterns, or diagnosing adapter errors (SFTP, HTTP\u002FOAuth, SOAP, IDoc, OData, AS2, Cloud Connector) from Message Processing Log (MPL) text. Not for SAP PI\u002FPO, ABAP development, or generic Java\u002FGroovy outside CPI.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fsap-cloud-integration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":103,"name":104,"nameZh":17,"description":105,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":101},"01M7B5CYRGSG571NH7EJWT5066","on-device-delegate","Saves cloud-model context by briefing one bounded, read-heavy sub-task (more than about 25 KB of prose, or many files that no single command can answer) to the local-coding plugin's on-device worker, which runs on the local MAI Code 1.1 Flash model. Use for log and test triage, summarizing many files, or extracting facts from large inputs. When the user names this skill, call the skill tool in the same response as your first other tool call, never as a separate step.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fon-device-delegate\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":17,"description":112,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":113,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":118},"01M74CBQ0M3ZKGQH8XKQZ2FHB1","scout-issue","Use when a developer wants to find the best GitHub issues to contribute to in a repository. Invoke with \u002Fscout-issue or ask to find good first issues, beginner-friendly issues, or open source work. Asks about experience level, technical skills, time, and contribution type, then searches GitHub issues, scores them, and presents ranked recommendations with match analysis.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fscout-issue\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fawesome-copilot\u002Fblob\u002Fmain\u002Fskills\u002Fscout-issue\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":120,"name":121,"nameZh":17,"description":122,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":54},"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",[],[126,127,128,129,130,131,132,133,134,44,135,136,137,138,139,140,141,142,143,144],"supabase rls policies","supabase rls","supabase","rls","project","with","when","review","change","write","security","isolation","tables","as","tests","prove","use","users","functions",{"skillNo":146,"name":147,"nameZh":17,"description":148,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":54},"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",[],[152,153,154,155,156,157,158,159,160,161,162,163,164,35,165,166,167,168,169,170],"distribution","skill distribution audit","audit","output","reconcile","release","template","duplicate","investigate","drift","SET","deterministic","installer","discovery","comparison","helper","manifest","version","collection",{"skillNo":172,"name":173,"nameZh":17,"description":174,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":175,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":54},"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",[],[179,180,181,182,183,184,185,35,130,186,187,188,189,190,191,192,142,193,194,195],"code","logicapps custom code net10 migration","migration","custom","Legacy","projects","standalone","deployment","applications","local","azure","worker","upgrades","package","apps","debugging","workflows"]