{"id":22962084,"url":"https://github.com/actionanand/ng-dev-testing","last_synced_at":"2026-05-03T02:41:11.272Z","repository":{"id":40296891,"uuid":"477833356","full_name":"actionanand/ng-dev-testing","owner":"actionanand","description":"Complete Angular Testing Repo - A complete guide to Angular Unit Testing","archived":false,"fork":false,"pushed_at":"2022-05-16T16:02:24.000Z","size":630,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T03:28:27.009Z","etag":null,"topics":["angular","angular-testing","angular11","unittest"],"latest_commit_sha":null,"homepage":"https://actionanand.github.io/ng-dev-testing/","language":"TypeScript","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/actionanand.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}},"created_at":"2022-04-04T18:52:43.000Z","updated_at":"2022-04-05T13:57:06.000Z","dependencies_parsed_at":"2022-08-09T16:44:46.093Z","dependency_job_id":null,"html_url":"https://github.com/actionanand/ng-dev-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/actionanand/ng-dev-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionanand%2Fng-dev-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionanand%2Fng-dev-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionanand%2Fng-dev-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionanand%2Fng-dev-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actionanand","download_url":"https://codeload.github.com/actionanand/ng-dev-testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actionanand%2Fng-dev-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32556771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"online","status_checked_at":"2026-05-03T02:00:09.297Z","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":["angular","angular-testing","angular11","unittest"],"created_at":"2024-12-14T19:15:12.526Z","updated_at":"2026-05-03T02:41:11.258Z","avatar_url":"https://github.com/actionanand.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ng Dev Testing\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.8.\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## Deploy to GitHub Pages\n\n1. To begin, add the `angular-cli-ghpages` builder.\n\n```bash\nng add angular-cli-ghpages\n```\n\n2. If you’re deploying the project to a Github project page you’ll need to set the `baseHref` property as the repository name. The `baseHref` will be used for all relative URLs on your site. You could specify the `baseHref` as part of the project architect deploy options in the `angular.json` file. Or just pass it as the `--base-href` flag to the `ng deploy` command. If you’re deploying the project to a Github user page, you do not need to set this option.\n\n```bash\nng deploy --base-href=/\u003crepository-name\u003e/\n```\n\nGitHub will automatically enable Pages when you push a gh-pages branch. There is no need to enable Pages from the repository settings.\n\n```bash\nng deploy --base-href=/ng-dev-testing/\n```\n\n* [Source](https://blog.bitsrc.io/deploy-your-angular-project-to-github-pages-7cbacb96f35b)\n* [How to deploy a React, Angular and Vue project to Github pages](https://deepinder.me/how-to-deploy-a-react-angular-vue-project-to-github-pages)\n* [Mocking Route params in Angular unit tests](https://www.joshuacolvin.net/mocking-activated-route-data-in-angular/)\n* [Testing Angular routing components with the RouterTestingModule](https://dev.to/this-is-angular/testing-angular-routing-components-with-the-routertestingmodule-4cj0)\n* [Writing Angular Test Cases for Router, Service, ActivatedRoute](https://medium.com/@akankshasingh872/writing-angular-test-cases-for-router-service-activatedroute-f28df460487a)\n* [Mock ActivatedRoute with params, data and snapshot](https://gist.github.com/benjamincharity/3d25cd2c95b6ecffadb18c3d4dbbd80b)\n* [An Introduction to Jasmine Unit Testing](https://www.freecodecamp.org/news/jasmine-unit-testing-tutorial-4e757c2cbf42/)\n* [Overriding Components for Testing](https://angular-training-guide.rangle.io/testing/components/injecting-dependencies/overriding)\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionanand%2Fng-dev-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factionanand%2Fng-dev-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factionanand%2Fng-dev-testing/lists"}