[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783QYN09ET3R08DGXZB02DQ":3,"skill-same:01M783QYN09ET3R08DGXZB02DQ":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M783QYN09ET3R08DGXZB02DQ","angular-testing",null,"ALWAYS use when writing tests for Angular applications, including unit tests, component tests, service tests, or E2E tests with Jasmine, Karma, Vitest, or Cypress.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_oguzhan18_angular-ecosystem-skills_angular-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: angular-testing\ndescription: \"ALWAYS use when writing tests for Angular applications, including unit tests, component tests, service tests, or E2E tests with Jasmine, Karma, Vitest, or Cypress.\"\nmetadata:\n  version: 21.0.0\n  generated_by: oguzhancart\n  generated_at: 2026-02-19\n---\n\n# Angular Testing\n\n**Version:** Angular 21 (2025)\n**Tags:** Testing, Jasmine, Karma, Vitest, Cypress, Jest\n\n**References:** [Testing Guide](https:\u002F\u002Fangular.dev\u002Fguide\u002Ftesting) • [Testing API](https:\u002F\u002Fangular.io\u002Fapi\u002Fcore\u002Ftesting) • [Angular Blog](https:\u002F\u002Fblog.angular.dev)\n\n## API Changes\n\nThis section documents recent version-specific API changes.\n\n- NEW: Vitest as default — Angular 21+ uses Vitest instead of Jasmine\u002FKarma [source](https:\u002F\u002Floiane.com\u002F2025\u002F12\u002Fangular-v21-template-coverage-testing\u002F)\n\n- NEW: Template coverage — Coverage reports now include HTML templates [source](https:\u002F\u002Floiane.com\u002F2025\u002F12\u002Fangular-v21-template-coverage-testing\u002F)\n\n- NEW: Component input testing — Test component inputs directly with `Component输入`\n\n- NEW: Functional interceptors for testing — Easier to test HTTP interceptors\n\n- DEPRECATED: Karma test runner — Migrate to Vitest for modern Angular\n\n## Best Practices\n\n- Use TestBed for component testing\n\n```ts\nimport { TestBed } from '@angular\u002Fcore\u002Ftesting';\nimport { MyComponent } from '.\u002Fmy.component';\n\ndescribe('MyComponent', () => {\n  let component: MyComponent;\n  let fixture: ComponentFixture\u003CMyComponent>;\n\n  beforeEach(async () => {\n    await TestBed.configureTestingModule({\n      imports: [MyComponent]\n    }).compileComponents();\n\n    fixture = TestBed.createComponent(MyComponent);\n    component = fixture.componentInstance;\n  });\n\n  it('should create', () => {\n    expect(component).toBeTruthy();\n  });\n});\n```\n\n- Use AAA pattern (Arrange-Act-Assert)\n\n```ts\nit('should calculate total correctly', () => {\n  \u002F\u002F Arrange\n  const service = new CalculatorService();\n  \n  \u002F\u002F Act\n  const result = service.add(2, 3);\n  \n  \u002F\u002F Assert\n  expect(result).toBe(5);\n});\n```\n\n- Use `fakeAsync` and `tick` for async operations\n\n```ts\nimport { fakeAsync, tick } from '@angular\u002Fcore\u002Ftesting';\n\nit('should fetch data after delay', fakeAsync(() => {\n  service.getData();\n  tick(1000);\n  expect(component.data).toBeTruthy();\n}));\n```\n\n- Use spies for mocking\n\n```ts\nit('should call service', () => {\n  spyOn(service, 'getData').and.returnValue(of({ name: 'Test' }));\n  \n  component.loadData();\n  \n  expect(service.getData).toHaveBeenCalled();\n});\n```\n\n- Use `by.css` for querying DOM elements\n\n```ts\nimport { By } from '@angular\u002Fplatform-browser';\n\nit('should display title', () => {\n  fixture.detectChanges();\n  const el = fixture.debugElement.query(By.css('.title'));\n  expect(el.nativeElement.textContent).toBe('Hello');\n});\n```\n\n- Test behavior, not implementation\n\n```ts\n\u002F\u002F ❌ Bad - tests implementation details\nexpect(component['privateMethod']).toHaveBeenCalled();\n\n\u002F\u002F ✅ Good - tests behavior\nexpect(fixture.nativeElement.querySelector('.result')).toContain('expected');\n```\n\n- Use `provideHttpClient` for HTTP testing\n\n```ts\nTestBed.configureTestingModule({\n  providers: [\n    provideHttpClient(withInterceptors([authInterceptor]))\n  ]\n});\n```\n\n- Use mock services for dependencies\n\n```ts\nconst mockAuthService = {\n  isAuthenticated: jasmine.createSpy().and.returnValue(true),\n  getToken: jasmine.createSpy().and.returnValue('fake-token')\n};\n\nTestBed.configureTestingModule({\n  providers: [{ provide: AuthService, useValue: mockAuthService }]\n});\n```\n\n- Test form validation\n\n```ts\nit('should show error for invalid email', () => {\n  component.form.controls.email.setValue('invalid');\n  component.form.controls.email.markAsTouched();\n  \n  fixture.detectChanges();\n  \n  expect(fixture.nativeElement.querySelector('.error')).toBeTruthy();\n});\n```\n\n- Use `detectChanges` appropriately\n\n```ts\n\u002F\u002F After changing component properties\ncomponent.value = 'new value';\nfixture.detectChanges();\n\n\u002F\u002F For async operations\nfixture.detectChanges();\nawait fixture.whenStable();\nfixture.detectChanges();\n```\n","# Angular Testing\n\n**Version:** Angular 21 (2025)\n**Tags:** Testing, Jasmine, Karma, Vitest, Cypress, Jest\n\n**References:** [Testing Guide](https:\u002F\u002Fangular.dev\u002Fguide\u002Ftesting) • [Testing API](https:\u002F\u002Fangular.io\u002Fapi\u002Fcore\u002Ftesting) • [Angular Blog](https:\u002F\u002Fblog.angular.dev)\n\n## API Changes\n\nThis section documents recent version-specific API changes.\n\n- NEW: Vitest as default — Angular 21+ uses Vitest instead of Jasmine\u002FKarma [source](https:\u002F\u002Floiane.com\u002F2025\u002F12\u002Fangular-v21-template-coverage-testing\u002F)\n\n- NEW: Template coverage — Coverage reports now include HTML templates [source](https:\u002F\u002Floiane.com\u002F2025\u002F12\u002Fangular-v21-template-coverage-testing\u002F)\n\n- NEW: Component input testing — Test component inputs directly with `Component输入`\n\n- NEW: Functional interceptors for testing — Easier to test HTTP interceptors\n\n- DEPRECATED: Karma test runner — Migrate to Vitest for modern Angular\n\n## Best Practices\n\n- Use TestBed for component testing\n\n```ts\nimport { TestBed } from '@angular\u002Fcore\u002Ftesting';\nimport { MyComponent } from '.\u002Fmy.component';\n\ndescribe('MyComponent', () => {\n  let component: MyComponent;\n  let fixture: ComponentFixture\u003CMyComponent>;\n\n  beforeEach(async () => {\n    await TestBed.configureTestingModule({\n      imports: [MyComponent]\n    }).compileComponents();\n\n    fixture = TestBed.createComponent(MyComponent);\n    component = fixture.componentInstance;\n  });\n\n  it('should create', () => {\n    expect(component).toBeTruthy();\n  });\n});\n```\n\n- Use AAA pattern (Arrange-Act-Assert)\n\n```ts\nit('should calculate total correctly', () => {\n  \u002F\u002F Arrange\n  const service = new CalculatorService();\n  \n  \u002F\u002F Act\n  const result = service.add(2, 3);\n  \n  \u002F\u002F Assert\n  expect(result).toBe(5);\n});\n```\n\n- Use `fakeAsync` and `tick` for async operations\n\n```ts\nimport { fakeAsync, tick } from '@angular\u002Fcore\u002Ftesting';\n\nit('should fetch data after delay', fakeAsync(() => {\n  service.getData();\n  tick(1000);\n  expect(component.data).toBeTruthy();\n}));\n```\n\n- Use spies for mocking\n\n```ts\nit('should call service', () => {\n  spyOn(service, 'getData').and.returnValue(of({ name: 'Test' }));\n  \n  component.loadData();\n  \n  expect(service.getData).toHaveBeenCalled();\n});\n```\n\n- Use `by.css` for querying DOM elements\n\n```ts\nimport { By } from '@angular\u002Fplatform-browser';\n\nit('should display title', () => {\n  fixture.detectChanges();\n  const el = fixture.debugElement.query(By.css('.title'));\n  expect(el.nativeElement.textContent).toBe('Hello');\n});\n```\n\n- Test behavior, not implementation\n\n```ts\n\u002F\u002F ❌ Bad - tests implementation details\nexpect(component['privateMethod']).toHaveBeenCalled();\n\n\u002F\u002F ✅ Good - tests behavior\nexpect(fixture.nativeElement.querySelector('.result')).toContain('expected');\n```\n\n- Use `provideHttpClient` for HTTP testing\n\n```ts\nTestBed.configureTestingModule({\n  providers: [\n    provideHttpClient(withInterceptors([authInterceptor]))\n  ]\n});\n```\n\n- Use mock services for dependencies\n\n```ts\nconst mockAuthService = {\n  isAuthenticated: jasmine.createSpy().and.returnValue(true),\n  getToken: jasmine.createSpy().and.returnValue('fake-token')\n};\n\nTestBed.configureTestingModule({\n  providers: [{ provide: AuthService, useValue: mockAuthService }]\n});\n```\n\n- Test form validation\n\n```ts\nit('should show error for invalid email', () => {\n  component.form.controls.email.setValue('invalid');\n  component.form.controls.email.markAsTouched();\n  \n  fixture.detectChanges();\n  \n  expect(fixture.nativeElement.querySelector('.error')).toBeTruthy();\n});\n```\n\n- Use `detectChanges` appropriately\n\n```ts\n\u002F\u002F After changing component properties\ncomponent.value = 'new value';\nfixture.detectChanges();\n\n\u002F\u002F For async operations\nfixture.detectChanges();\nawait fixture.whenStable();\nfixture.detectChanges();\n```\n",{"name":5,"metadata":24,"description":7},{"version":25,"generated_at":26,"generated_by":27},"21.0.0",1771459200000,"oguzhancart","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_oguzhan18_angular-ecosystem-skills_angular-testing",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill angular-testing",{"tool":43,"command":44},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill angular-testing",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill angular-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_oguzhan18_angular-ecosystem-skills_angular-testing\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]