angularjs-unit-testing

REVIEW · 45
Registry indexed

Use this skill for AngularJS unit testing, maintenance, and migration tasks

Verified installs0
Stars14
Version1.0.0
Quality59/100 · Promising
Trust45/100 · Do not auto-install
Audit69/100 · Needs review

Supply asset profile

Coding and developer agents

Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.

Browse track

Scenario

Testing and QA

I need my agent to test a web app, reproduce bugs, and verify fixes.

Agent fit

Claude Code + Browser agents + CLI

Codex, Claude Code, Cursor, CLI, or custom agents.

Install

Ready

npx skills add greedychipmunk/agent-skills --skill angularjs-unit-testing

Maintenance

fresh

1d since push

Risk

Needs review

Dependency or permission surface needs review

GitHub quality

14

59/100 Quality · 57/100 Trust

Coverage tags

CodingTesting and QAcoding-agentsagent-skill

Review notes

Dependency or permission surface needs review · Permission surface may require sandboxing

Agent adoption scorecard

Trust, audit, and install readiness at a glance

These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.

Quality

Promising
59

Useful candidate, but compare it with alternatives before adopting.

Trust

Do not auto-install
45

Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.

Audit

Needs review
69

A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.

OpenAgentSkill Trust Score v5

Human review before install

Choose a stronger alternative or inspect the source manually before any install attempt.

CodexClaude CodeCursorOpenAgentSkill CLI

Stars

14 GitHub stars

Repo activity

14 stars, 1 forks

Maintenance

1d since push

License

MIT

Install

npx skills add greedychipmunk/agent-skills --skill angularjs-unit-testing

Install safety

standard package or runtime install path

Permission surface

secrets or environment access, shell or command execution

Agent outcomes

No agent outcome data yet

Docs

Usable metadata, review docs

Risk summary

High review required

  • The SKILL.md excerpt appears truncated at 'Test Organization' – ensure the full document is present and complete.
  • Financial research output is not financial advice; require human review before any live investment decision.
  • Low GitHub adoption signal
  • Quality score needs review

Install readiness

Install path available

  • Install path is available
  • Repository evidence is available
  • License is declared
  • No Agent Proven outcome evidence yet

Agent-readable metadata

Machine-readable decision data for this skill.

Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.

Open JSON

Suited tasks

  • Browser automation workflows
  • Claude Code teams
  • builders willing to evaluate younger projects
  • Navigate pages

Suited agents

CodexClaude CodeCursorOpenAgentSkill CLIBrowser agentsCLI

Install decision

Command
npx skills add greedychipmunk/agent-skills --skill angularjs-unit-testing
Policy
block
Human review
yes

Trust and risk

Trust
45/100
Audit
69/100
Risk level
Needs review

Outcome loop

Endpoint
/api/agent/outcome
Event ID
resolve
Outcomes
5

Install command

npx skills add greedychipmunk/agent-skills --skill angularjs-unit-testing

Do not use when

  • teams that need a vendor-supported SLA
  • production agents without a repository review
  • Low GitHub adoption signal
  • The SKILL.md excerpt appears truncated at 'Test Organization' – ensure the full document is present and complete.
  • High-risk permission hints: Shell or command execution, Secrets or environment access

Agent safety v2

21/100 · Avoid automatic install

Blocked for auto-installblock

This skill should not be selected by an agent without explicit human security review.

Do not auto-install. Inspect the source, dependencies, and permission surface first.

Resolve via API

high

Shell or command execution

Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.

medium

Browser automation

Skill may drive a browser or interact with web pages.

medium

Network access

Skill likely fetches remote pages, APIs, repositories, or external services.

medium

Filesystem access

Skill may read or write project files, documents, generated artifacts, or local workspace state.

  • High-risk permission hints: Shell or command execution, Secrets or environment access
  • Dependency or permission surface needs review

Install targets

Install this skill in your agent workflow

Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.

skill install

OpenAgentSkill CLI

Resolve policy, run the source installer safely, and report a verified install receipt.

$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install greedychipmunk-angularjs-unit-testing

Agent resolve plan

Let an agent verify fit before installing.

The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.

Open text plan

Agent should check

  • Task fit and alternatives from Resolve API.
  • Audit score, trust score, and safety policy warnings.
  • Install target compatibility for Codex, Claude Code, Cursor, or CLI.

Copy prompt

Task: Use angularjs-unit-testing in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20angularjs-unit-testing%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/greedychipmunk-angularjs-unit-testing/install
Install command: npx skills add greedychipmunk/agent-skills --skill angularjs-unit-testing
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.

Agent handoff

Give an agent the install path, not another directory page.

Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.

Open install API

Agent prompt

Use angularjs-unit-testing for this task. Review https://www.openagentskill.com/api/skills/greedychipmunk-angularjs-unit-testing/install, then install with: npx skills add greedychipmunk/agent-skills --skill angularjs-unit-testing

Registry metadata

Agent-readable profile for automatic skill selection.

This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.

Open manifest

Agent fit

60/100

Browser automation

Platforms

Claude Code, Browser agents

Audit report

Needs review · 69/100

A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.

View audit reportView eval report

Agent decision cockpit

Fallback candidate for Browser automation

Prototype with this skill first; keep a fallback candidate ready.

60
Readiness
Prototype
Stage

Role in stack

Fallback candidate

Primary fit

Browser automation

Trust label

Prototype first

Install path

Command ready

Use when

  • Browser automation workflows
  • Claude Code teams
  • builders willing to evaluate younger projects

Evidence

  • recent repository activity
  • install command or GitHub repo available
  • 59/100 quality profile
  • 4 OpenAgentSkill engagement events

review first

  • Low GitHub adoption signal
  • The SKILL.md excerpt appears truncated at 'Test Organization' – ensure the full document is present and complete.

Implementation path

  1. 1Install it in a sandbox agent and run one Browser automation task end to end.
  2. 2Compare output quality, latency, and failure behavior against at least one alternative.
  3. 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.

Trust profile

Do not auto-install

Trust Score v5 found insufficient evidence for agent installation. Treat this as discovery material, not an executable recommendation.

45
OpenAgentSkill Trust Score

GitHub adoption

FIX

14 GitHub stars

Stars/forks activity

FIX

14 stars, 1 forks; issue activity unavailable in current metadata

Recent maintenance

PASS

1d since push

License clarity

PASS

MIT

Good signals

  • AI review approved
  • Install path is available
  • Repository evidence is available
  • Recently maintained repository
  • Install command has no obvious high-risk pattern
  • Outcome loop is ready but needs first real agent run

Review before install

  • The SKILL.md excerpt appears truncated at 'Test Organization' – ensure the full document is present and complete.
  • Financial research output is not financial advice; require human review before any live investment decision.
  • Low GitHub adoption signal
  • Quality score needs review
  • Permission surface needs review: secrets or environment access, shell or command execution
  • GitHub adoption: 14 GitHub stars
  • Stars/forks activity: 14 stars, 1 forks; issue activity unavailable in current metadata
  • Dependency/runtime risk: command execution surface, credential or environment access
  • Permission surface: secrets or environment access, shell or command execution
  • No real agent outcome reports yet
  • Human review required before unattended installation

Recommended action

Choose a stronger alternative or inspect the source manually before any install attempt.

Quality profile

Promising candidate for agent workflows

Useful candidate, but compare it with alternatives before adopting.

59
GitHub stars
14
Freshness
1d ago
Install ready
Yes
License
MIT
Review before install: Low GitHub adoption signal · The SKILL.md excerpt appears truncated at 'Test Organization' – ensure the full document is present and complete.

Workflow fit

Use this skill in these scenarios

Workflow fit

Add it to a complete workflow

Alternative shortlist

Compare before you install

Similar skills that may fit this task.

Compare all

Overview

--- name: angularjs-unit-testing description: Use this skill for AngularJS unit testing, maintenance, and migration tasks ---

# AngularJS Unit Testing Skill

## Overview

This skill specializes in writing, refactoring, and maintaining high-quality unit tests for AngularJS (1.x) applications. It covers controllers, services, filters, directives, HTTP mocking, promises, and dependency injection — everything you need to keep an AngularJS codebase well-tested and reliable.

> **Note**: AngularJS reached end-of-life in December 2021. It receives only critical security fixes. New projects should use Angular 19+. For teams maintaining AngularJS codebases, this skill provides the latest testing patterns, tooling, and migration guidance. See [Migration Path](#migration-path-angularjs--angular) at the bottom of this document.

## Skill Capabilities

### Core Testing Competencies

- **Controllers**: Write tests for controller logic, state management, and event handling - **Services**: Test factory/service dependencies, HTTP calls, and business logic - **Filters**: Validate filter transformations and edge cases - **Directives**: Test directive compilation, linking, and DOM manipulation - **HTTP Mocking**: Mock HTTP calls using `$httpBackend` (Jasmine/Karma) or MSW/fetch mocks (Jest) - **Promises & Async**: Handle `$q`, deferred objects, and `$timeout` - **Dependency Injection**: Test with mocked and real dependencies - **Scope Management**: Test scope lifecycle, watchers, and event broadcasting - **Coverage Analysis**: Generate and interpret code coverage reports - **Test Organization**: Structure tests following best practices and maintainability principles - **Framework Choice**: Jest for new work and hybrid repos; Jasmine/Karma for existing suites

### Testing Patterns

This skill implements the following testing patterns:

1. **AAA Pattern (Arrange-Act-Assert)** - Organize tests with clear setup, execution, and verification phases - Improves readability and maintainability

2. **Mocking & Spying** - Use Jasmine spies or Jest mocks to mock functions and verify calls - Mock HTTP responses and service dependencies - Simulate user interactions

3. **Test Fixtures** - Create reusable test data and helper functions - Use beforeEach/afterEach for common setup/teardown - Reduce test duplication

4. **Edge Case Testing** - Test boundary conditions, empty states, and error scenarios - Validate error handling and graceful degradation - Test asynchronous operations and race conditions

5. **Snapshot Testing** (Jest) - Capture expected component output - Detect unintended changes in UI rendering

6. **Deterministic Async** - Prefer fake timers, controlled promises, and isolated state over timing-sensitive assertions

## Testing Frameworks & Test Runners

### Jasmine (Legacy Default)

Jasmine remains the safest choice when you are preserving an existing AngularJS + Karma suite.

**Key Concepts**: - `describe()`: Group related tests into a test suite - `it()`: Define individual test cases - `expect()`: Create assertions - `beforeEach()` / `afterEach()`: Setup and teardown hooks - `spyOn()` / `jasmine.createSpy()`: Mock functions and track calls

**Setup**: ```bash npm install --save-dev jasmine karma karma-jasmine karma-chrome-launcher ```

**Use when**: - You are maintaining an existing Jasmine/Karma suite - You want the smallest possible change set for legacy AngularJS code

### Jest (Recommended)

Jest is the modern default for AngularJS test maintenance and migration work. It runs tests in parallel, has stronger mocking APIs, supports snapshots, and includes built-in coverage reporting.

**Key Concepts**: - `describe()`: Group related tests - `test()` or `it()`: Define individual test cases - `expect()`: Create assertions - `beforeEach()` / `afterEach()`: Setup and teardown hooks - `jest.fn()`: Create mock functions - `jest.spyOn()`: Spy on existing methods - `jest.mock()`: Mock modules

**Setup**: ```bash npm install --save-dev jest jest-preset-angular angular-mocks npm install @angular/core ```

**Jest Configuration** (`jest.config.js`): ```javascript module.exports = { preset: 'jest-preset-angular', testEnvironment: 'jsdom', setupFilesAfterEnv: ['<rootDir>/setup-jest.js'], transform: { '^.+\.js$': 'babel-jest' }, collectCoverage: true, collectCoverageFrom: ['src/**/*.js', '!src/**/*.spec.js'] }; ```

**Use when**: - You want faster feedback from parallel execution - You need better mocking, snapshots, and coverage out of the box - You are preparing an AngularJS codebase for an Angular migration

### Karma (Legacy Runner)

Karma is the legacy browser test runner traditionally paired with Jasmine. It is still usable for existing suites, but it has seen no major releases since 2021 and should not be the basis for new investment.

**Configuration**: - `karma.conf.js`: Main configuration file - Specifies browser environment, files to load, and plugins - Supports code coverage reporting and CI integration

## Jest Migration Guide

Use these steps when moving an AngularJS test suite from Jasmine/Karma to Jest:

1. **Install the core tooling** ```bash npm install --save-dev jest jest-preset-angular angular-mocks npm install @angular/core ``` Add `@angular/core` when the repo is hybrid or actively migrating toward Angular.

2. **Create a Jest setup file** - Add `setup-jest.js` or `setup-jest.ts` - Load `angular`, `angular-mocks`, and any shared test polyfills there

3. **Configure Jest for AngularJS files** - Use `jest.config.js` with `testEnvironment: 'jsdom'` - Add a transform for legacy JavaScript sources - Keep template or DOM-specific setup in the Jest bootstrap file

4. **Load AngularJS modules in Jest** ```javascript beforeEach(() => { require('angular'); require('angular-mocks'); angular.mock.module('myApp'); }); ```

5. **Migrate spies and stubs** - `spyOn(obj, 'method')` → `jest.spyOn(obj, 'method')` - `jasmine.createSpy()` → `jest.fn()` - `jasmine.createSpyObj()` → `jest.fn()` or explicit mock objects

6. **Replace `$httpBackend` where practical** - Prefer `fetch` mocks or MSW for new Jest tests - Keep `$httpBackend` only for legacy tests that are expensive to rewrite immediately

7. **Reset state between tests** - Use `jest.clearAllMocks()` / `jest.resetAllMocks()` - Recreate AngularJS modules and services in `beforeEach()`

## Handling Environmental Flakiness

Legacy AngularJS suites often fail because the environment is unstable, not because the code is broken.

**Common sources of flakiness**: - Timing issues and race conditions - Shared state between tests - Browser environment differences - Network-dependent tests and real external services - Time zone, locale, and date-sensitive logic

**Deterministic test patterns**: - Use fake timers for scheduled work and debounce/throttle logic - Keep async work controlled with explicit promise resolution and digest flushing - Reset shared state, mocks, and module caches in `afterEach()` - Avoid real browser/network dependencies in unit tests - Prefer fixed test data over generated or time-based values

**js-env-sanitizer pattern**: - Snapshot and restore environment-dependent globals around each test - Isolate `window`, `document`, `localStorage`, `Date`, `Math.random`, feature flags, and DOM mutations - This is especially useful in long-lived AngularJS suites where hidden environment coupling causes intermittent failures

## Test Pyramid Guidance for Legacy Codebases

Legacy AngularJS codebases often have an inverted test pyramid: too many end-to-end tests and too few unit tests.

**Recommended shape**: - **Base**: many fast unit tests for controllers, services, filters, and directives - **Middle**: fewer integration tests for module wiring, routing, and API boundaries - **Top**: a small number of end-to-end tests for critical user journeys only

**Guidance**: - Shift coverage toward unit tests first - Keep integration tests as the middle layer, not the base - Use e2e tests sparingly because they are slower and more environment-sensitive

## Test Structure

### Jasmine Test Structure (Legacy Default)

All Jasmine tests follow this standard structure:

```javascript describe('Component Name', function() { var componentUnderTest, dependencies;

beforeEach(module('myApp'));

beforeEach(inject(function($injector) { componentUnderTest = $injector.get('ComponentName'); dependencies = $injector.get('DependencyName'); }));

afterEach(function() { // Cleanup code });

describe('Functionality Group', function() { it('should do something specific', function() { // Arrange var input = 'test';

// Act var result = componentUnderTest.method(input);

// Assert expect(result).toBe('expected'); }); }); }); ```

### Jest Test Structure (Recommended)

Jest tests follow a similar structure with modern mocking and cleaner teardown:

```javascript describe('Component Name', () => { let componentUnderTest; let dependency;

beforeEach(() => { jest.clearAllMocks(); // Setup code or mock initialization dependency = { method: jest.fn() }; componentUnderTest = require('./component'); });

afterEach(() => { // Cleanup code });

describe('Functionality Group', () => { test('should do something specific', () => { // Arrange const input = 'test';

// Act const result = componentUnderTest.method(input, dependency);

// Assert expect(result).toBe('expected'); }); }); }); ```

**Key Differences**: - Jest uses `jest.fn()` / `jest.spyOn()` instead of Jasmine spies for modern test code - Jest uses `test()` or `it()` (both work) - Jest auto-discovers `.spec.js` and `.test.js` files - Jest provides built-in snapshot testing and code coverage

## Best Practices

### 1. Test Organization - One test file per component (e.g., `controller.spec.js` for `controller.js`) - Organize tests into logical groups using `describe()` - Use meaningful test names that describe expected behavior

### 2. DRY Principle (Don't Repeat Yourself) - Extract common setup into `beforeEach()` blocks - Create reusable test data fixtures - Use helper functions to reduce duplication

### 3. Test Independence - Each test should be independent and runnable in any order - Clean up resources in `afterEach()` - Avoid shared state between tests

### 4. Realistic Mocks - Mock external dependencies realistically - Use actual data structures when possible - Avoid overly simplified or unrealistic mocks

### 5. Comprehensive Coverage - Aim for 80%+ code coverage - Test happy paths, edge cases, and error scenarios - Test async operations and race conditions

### 6. Performance - Keep tests fast - Use in-memory mocks instead of real HTTP requests - Avoid unnecessary database operations

### 7. Maintainability - Write tests that are easy to understand - Use the AAA pattern for clarity - Document complex test logic with comments - Refactor tests when the component changes

## Common Testing Scenarios

### Testing Controllers

```javascript describe('UserController', function() { var $scope, controller;

beforeEach(module('myApp')); beforeEach(inject(function($controller, $rootScope) { $scope = $rootScope.$new(); controller = $controller('UserController', { $scope: $scope }); }));

it('should initialize with default values', function() { expect($scope.users).toBeDefined(); });

it('should load users on init', function() { expect($scope.users.length).toBeGreaterThan(0); }); }); ```

### Testing Services

```javascript describe('UserService', function() { var userService, $httpBackend;

beforeEach(module('myApp')); beforeEach(inject(function(_UserService_, _$httpBackend_) { userService = _UserService_; $httpBackend = _$httpBackend_; }));

afterEach(function() { $httpBackend.ver

Technical details

Version
1.0.0
License
MIT
Last updated
Aug 22, 2026
Published
Aug 22, 2026

Decision snapshot

Fallback candidate

60
Ready
Prototype
Stage

recent repository activity

Audit

Install review

Install and adoption review

69
Needs review
Security
66/100
Maintenance
100/100
Install
92/100
Open full auditView eval report

Agent-proven evidence

Agent-proven evidence

Outcome reports after resolve, review, install, and one narrow run.

0
Proven
Needs first agent runAuto-install: review firstLast: Unknown
Success rate
Recent failure
Outcomes
0
Output quality
Failed
0
Not relevant
0
Installs
0
Risk blocked
0
Setup needed
0
Production
0

No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.

Install

Add to agent workflow

Free and open source. Review the report before installing into production agents.

Growth loop

Share kit

X

Scenario-led draft for angularjs-unit-testing, ready for a manual X post.

Curator note
Before you hand an agent a repeatable workflow, give it a repeatable starting point.

angularjs-unit-testing: Use this skill for AngularJS unit testing, maintenance, and migration tasks

14 stars

https://www.openagentskill.com/skills/greedychipmunk-angularjs-unit-testing?ref=x
Open X draft
Optional reply with install command
Listing + install path for angularjs-unit-testing:
https://www.openagentskill.com/skills/greedychipmunk-angularjs-unit-testing?ref=x

Install: npx skills add greedychipmunk/agent-skills --skill angularjs-unit-testing

Listing source

Registry indexed

Claimable

This listing was indexed from public sources and is not marked official until a maintainer claim is approved.

Indexed by
OpenAgentSkill community index

Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.

Claim this skill

Owner claim

Claim this skill listing

This Registry indexed listing is attributed to greedychipmunk but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.

Creator backlink kit

Add the evidence badges to your README

Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.

[![Listed on OpenAgentSkill](https://www.openagentskill.com/api/badge/greedychipmunk-angularjs-unit-testing?metric=listed&label=Listed)](https://www.openagentskill.com/skills/greedychipmunk-angularjs-unit-testing)
[![OpenAgentSkill Trust](https://www.openagentskill.com/api/badge/greedychipmunk-angularjs-unit-testing?metric=trust&label=Trust)](https://www.openagentskill.com/skills/greedychipmunk-angularjs-unit-testing)
[![OpenAgentSkill Audit](https://www.openagentskill.com/api/badge/greedychipmunk-angularjs-unit-testing?metric=audit&label=Audit)](https://www.openagentskill.com/skills/greedychipmunk-angularjs-unit-testing/audit)
[![Agent Proven](https://www.openagentskill.com/api/badge/greedychipmunk-angularjs-unit-testing?metric=proven&label=Agent%20Proven)](https://www.openagentskill.com/skills/greedychipmunk-angularjs-unit-testing)

Author

G

greedychipmunk

@greedychipmunk

Health signals

GitHub stars
14
Quality score
32/100
Last GitHub push
Aug 22, 2026
Framework hints
Unknown
OpenAgentSkill views
4
Install copies
0
Outbound clicks
0

Community signal

Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.

Trust & safety

Do not auto-install

45
  • GitHub adoption14 GitHub starsFIX
  • Stars/forks activity14 stars, 1 forks; issue activity unavailable in current metadataFIX
  • Recent maintenance1d since pushPASS
  • License clarityMITPASS
  • README/SKILL.md completenessPublic metadata needs stronger README/SKILL.md contextINFO
  • Dependency/runtime riskcommand execution surface, credential or environment accessFIX