{"id":28158168,"url":"https://github.com/mohamedamineboufares/unit-testing-nextjs","last_synced_at":"2026-04-18T11:01:29.046Z","repository":{"id":189311464,"uuid":"680451095","full_name":"MohamedAmineBoufares/unit-testing-nextjs","owner":"MohamedAmineBoufares","description":"Testing in a Next.js app","archived":false,"fork":false,"pushed_at":"2023-09-03T08:49:27.000Z","size":389,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-15T09:18:52.762Z","etag":null,"topics":["cypress","end-to-end-testing","integration-testing","jest","nextjs","react-testing-library","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MohamedAmineBoufares.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,"zenodo":null}},"created_at":"2023-08-19T09:29:57.000Z","updated_at":"2023-08-20T11:05:18.000Z","dependencies_parsed_at":"2023-08-19T10:45:24.822Z","dependency_job_id":"bff38167-197f-4e6b-9603-e5ceb7e7e79a","html_url":"https://github.com/MohamedAmineBoufares/unit-testing-nextjs","commit_stats":null,"previous_names":["mohamedamineboufares/unit-testing-nextjs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MohamedAmineBoufares/unit-testing-nextjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAmineBoufares%2Funit-testing-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAmineBoufares%2Funit-testing-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAmineBoufares%2Funit-testing-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAmineBoufares%2Funit-testing-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MohamedAmineBoufares","download_url":"https://codeload.github.com/MohamedAmineBoufares/unit-testing-nextjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedAmineBoufares%2Funit-testing-nextjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31966217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cypress","end-to-end-testing","integration-testing","jest","nextjs","react-testing-library","unit-testing"],"created_at":"2025-05-15T09:16:23.206Z","updated_at":"2026-04-18T11:01:29.022Z","avatar_url":"https://github.com/MohamedAmineBoufares.png","language":"TypeScript","readme":"# Testing in Next.js\n\n## Table of contents\n\n- [Testing in Next.js](#testing-in-nextjs)\n  - [Table of contents](#table-of-contents)\n  - [General info](#general-info)\n  - [Technologies](#technologies)\n  - [Setup](#setup)\n  - [Licence](#licence)\n\n## General info\n\nA simple project to try different testing types in Next.js.\n\n## Technologies\n\nThe project is created with:\n\n- Node.js: 18.17.1\n- [pnpm](https://pnpm.io/installation#using-npm): 8.6.12\n- Next.js: 13.4.19\n- Taliwind CSS: 3.3.3\n- Zustand: 4.4.1\n- Jest: 29.6.2\n- React Testing Library: 14.0.0\n- Cypress: 12.17.4\n\n## Setup\n\nTo run this project:\n\n1. Install it locally using [pnpm](https://pnpm.io/installation#using-npm)\n\n```bash\npnpm i\n```\n\n2. Run the development server:\n\n```bash\npnpm dev\n```\n\n3. Run unit tests:\n\n```bash\npnpm test\n```\n\n4. Run unit tests with coverage:\n\n```bash\npnpm test:coverage\n```\n\n5. Run E2E tests using Cypress:\n\n```bash\npnpm test:e2e\n```\n\n**Note:** The coverage report is generated in the `coverage` folder.\n\n## Licence\n\n[MIT licensed](./LICENCE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedamineboufares%2Funit-testing-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedamineboufares%2Funit-testing-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedamineboufares%2Funit-testing-nextjs/lists"}