{"id":26929504,"url":"https://github.com/abrahamgalue/testing-js","last_synced_at":"2026-04-05T23:04:55.952Z","repository":{"id":283376026,"uuid":"950055025","full_name":"abrahamgalue/testing-js","owner":"abrahamgalue","description":"Repository for learning the fundamental concepts of JavaScript testing","archived":false,"fork":false,"pushed_at":"2025-05-01T13:08:40.000Z","size":1856,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T14:24:12.500Z","etag":null,"topics":["docker","jest","mongodb","playwright","testing"],"latest_commit_sha":null,"homepage":"","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/abrahamgalue.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":"2025-03-17T15:01:28.000Z","updated_at":"2025-05-01T13:10:07.000Z","dependencies_parsed_at":"2025-03-27T02:36:53.866Z","dependency_job_id":null,"html_url":"https://github.com/abrahamgalue/testing-js","commit_stats":null,"previous_names":["abrahamgalue/testing-js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abrahamgalue/testing-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Ftesting-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Ftesting-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Ftesting-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Ftesting-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abrahamgalue","download_url":"https://codeload.github.com/abrahamgalue/testing-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Ftesting-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264841487,"owners_count":23671898,"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":["docker","jest","mongodb","playwright","testing"],"created_at":"2025-04-02T05:27:15.352Z","updated_at":"2025-12-30T22:11:45.737Z","avatar_url":"https://github.com/abrahamgalue.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align='center'\u003e\n\n# 🧪 Jest + Playwright + MongoDB + Docker: Testing JS\n\n\u003c/div\u003e\n\n### Curso completado para aprender Testing en JS.\n\n![vista-previa](./public/preview/01-page-preview.jpg)\n\n![vista-previa](./public/preview/02-page-preview.jpg)\n\n![vista-previa](./public/preview/03-page-preview.jpg)\n\n## 🚀 Descripción\n\nEste repositorio contiene todo el código del curso que he completado para aprender testing en JavaScript con Jest y Playwright.\n\nHaciendo tests unitarios, de integración y e2e. Todo esto con una BDD de pruebas hecha con MongoDB y ejecutada en Docker.\n\n## ⚡ Comenzar\n\n### Prerrequisitos\n\n1. Git.\n2. Node.js: cualquier versión a partir de la 18 o superior.\n3. Docker Desktop.\n\n## 🔧 Instalación\n\n### Usando npm\n\n1. **Clona el repositorio:**\n\n   ```bash\n   git clone https://github.com/abrahamgalue/testing-js.git\n   cd testing-js\n   ```\n\n2. **Instala las dependencias:**\n\n   ```bash\n   npm install\n   ```\n\n### Ejecución de tests\n\nPuedes acceder a las diferentes carpetas y ejecutar los tests\n\n1. **Ejecuta los tests:**\n\n   ```bash\n   npm run test\n   ```\n\n   Te recomiendo revisar los archivos `package.json` de las diferentes carpetas para revisar los diferentes scripts para ejecutar los test.\n\n   \u003e Nota: las carpetas que contengan un archivo `docker-compose.yml`, necesitas ejecutar ese contenedor antes de ejecutar los tests, esto lo puedes hacer con el comando `docker-compose up -d mongo-e2e` y para detener ese contenedor en la misma ruta ejecutas `docker-compose down`. Asegúrate de tener el Docker Desktop ejecutándose.\n\n## 🎭 Tecnologías\n\n- [**Jest**](https://jestjs.io/) Para realizar pruebas unitarias y de integración.\n- [**Playwright**](https://playwright.dev/) Para realizar pruebas e2e.\n- [**MongoDB**](https://www.mongodb.com/) Para crear la BDD de pruebas.\n- [**Docker**](https://www.docker.com/) Para ejecutar la BDD.\n- [**supertest**](https://www.npmjs.com/package/supertestS) Para generar tests de nuestra API.\n- [**Faker**](https://www.npmjs.com/package/@faker-js/faker) Para hacer mocking de datos.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrahamgalue%2Ftesting-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabrahamgalue%2Ftesting-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrahamgalue%2Ftesting-js/lists"}