{"id":15542537,"url":"https://github.com/robdel12/percy-cypress-component-testing","last_synced_at":"2025-04-05T08:28:05.116Z","repository":{"id":66369091,"uuid":"482930651","full_name":"Robdel12/percy-cypress-component-testing","owner":"Robdel12","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-18T17:17:12.000Z","size":101,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-03T12:25:40.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Robdel12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-18T17:13:03.000Z","updated_at":"2022-04-18T17:14:10.000Z","dependencies_parsed_at":"2023-02-22T02:30:46.611Z","dependency_job_id":null,"html_url":"https://github.com/Robdel12/percy-cypress-component-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robdel12%2Fpercy-cypress-component-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robdel12%2Fpercy-cypress-component-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robdel12%2Fpercy-cypress-component-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Robdel12%2Fpercy-cypress-component-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Robdel12","download_url":"https://codeload.github.com/Robdel12/percy-cypress-component-testing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247309927,"owners_count":20918048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T12:23:20.084Z","updated_at":"2025-04-05T08:28:05.090Z","avatar_url":"https://github.com/Robdel12.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Component Testing Example: Create Next App + Webpack 5\n\nThis is an example **Create Next App + Webpack 5** project with Cypress component testing.\n\n- `yarn` to install the dependencies\n- `npx cypress open-ct` to run interactively\n- `npx cypress run-ct` to run all tests headlessly\n\nThe following was done to create this example:\n\n1. Initialize a baseline \"nested-components\" project in the [create-next-app-webpack-5](.) subdirectory\n   1. `npx create-next-app --example nested-components create-next-app-webpack-5`\n   2. `cd create-next-app-webpack-5`\n   3. Commit [`3bdf444`](https://github.com/cypress-io/cypress-component-testing-examples/commit/3bdf444df49183c68e4ad19f8ad5d14b156394fe)\n2. Enable Webpack 5\n   1. Update [next.config.js](next.config.js)\n   2. Commit [`276c026`](https://github.com/cypress-io/cypress-component-testing-examples/commit/276c02626ff30d08491e5823c0a251c8d2cd66e5)\n3. Add Cypress component testing support with sample tests\n   1. `yarn add -D cypress @cypress/react @cypress/webpack-dev-server webpack-dev-server@3 html-webpack-plugin@5`\n   2. Add [cypress.json](cypress.json)\n   3. Add [cypress/plugins/index.js](cypress/plugins/index.js)\n   4. Add [components/paragraph.spec.ct.js](components/paragraph.spec.ct.js), [components/post.spec.ct.js](components/post.spec.ct.js), [pages/index.spec.ct.js](pages/index.spec.ct.js)\n   5. `npx cypress open-ct`\n   6. Commit [`2789ebd`](https://github.com/cypress-io/cypress-component-testing-examples/commit/2789ebd1d16ff74e3360fbc54496ee9585b168d3)\n\n_This example was generated by [create-next-app-webpack-5.sh](https://github.com/cypress-io/cypress-component-testing-examples/blob/scripts/create-next-app-webpack-5.sh) on 2021-05-26. The original README follows._\n\n---\n\n# Example app using nested components\n\nTaking advantage of the composable nature of React components we can modularize our apps in self-contained, meaningful components. This example has a page under `pages/index.js` that uses `components/paragraph.js` and `components/post.js` that can be styled and managed separately.\n\n## Deploy your own\n\nDeploy the example using [Vercel](https://vercel.com?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=next-example):\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/nested-components\u0026project-name=nested-components\u0026repository-name=nested-components)\n\n## How to use\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:\n\n```bash\nnpx create-next-app --example nested-components nested-components-app\n# or\nyarn create next-app --example nested-components nested-components-app\n```\n\nDeploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github\u0026utm_medium=readme\u0026utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobdel12%2Fpercy-cypress-component-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobdel12%2Fpercy-cypress-component-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobdel12%2Fpercy-cypress-component-testing/lists"}