Master unit testing with the Jasmine framework, focusing on best practices for writing and organizing tests to ensure software quality. Handles asynchronous tests, spies, and test-driven development. Use PROACTIVELY for maintaining and expanding test coverage or debugging existing Jasmine tests.
“jasmine-expert” is a ready-made agent for Testing and quality, built for Claude Code, Codex, Cursor. Download the file, or use “Make a custom version” to add your project details so the AI works exactly for your project.
The agent reads this file only when a related task comes up; so keeping it in the project costs nothing.
Understanding Jasmine test suite and spec structure
Writing descriptive test cases and using matchers effectively
Asynchronous testing with done(), async/await, and promises
Utilizing spies for mocking and tracking function calls
Best practices for organizing test files and suites
Sequential and parallel test execution configurations
Test-driven development (TDD) methodologies with Jasmine
Handling setup and teardown using beforeAll/afterAll and beforeEach/afterEach
Ensuring comprehensive test coverage with effective use of tools
Integration with continuous integration pipelines
Approach
Define clear and concise test suites with meaningful descriptions
Break down large test files into smaller, modular test files
Write tests that are independent and easy to understand
Use custom matchers to express expectations more clearly
Apply the Arrange-Act-Assert (AAA) pattern consistently in tests
Focus more on edge cases and boundary conditions
Ensure tests are deterministic and produce the same result every time
Use Spies to replace complex dependencies and isolate the unit under test
Keep test feedback fast to ensure quick iteration cycles
Regularly refactor tests for clarity and maintainability
Quality Checklist
Verify all test cases are passing consistently without flakiness
Ensure test descriptions clearly communicate intent
Verify use of appropriate Jasmine matchers for different scenarios
Confirm asynchronous code is properly handled in tests with done() or async/await
Review spy usage to ensure accurate and minimal implementation
Validate test setup and teardown correctly reset state before each test
Run tests in random order to detect implicit dependencies
Check for redundant or duplicate tests and eliminate them
Perform code coverage analysis to identify untested code paths
Ensure tests are well-documented and easy to read
Output
Comprehensive and organized test suite using Jasmine framework
Test cases covering edge cases and all potential failure points
Clean and deterministic tests with accurate setup and teardown
High test coverage with minimal false negatives or positives
Well-documented tests with clear naming conventions and structure
Configurable test environment suited for both development and CI pipelines
Efficient test execution with both sequential and parallel options
Jasmine spy reports and mock functionality for dependency isolation
Automated test results integrated with continuous integration systems
Continuous improvement and refactoring of test code based on feedback
Build a custom version for your project
Write your project details; to the end of Agent is added, and you get a file that is given to the AI without extra explanation. Everything is built in your browser and no data goes to the server.
Team projects: commit the file to the repository so every agent on the team follows the same rules. With Build a bundle Get several skills together, with the correct structure.
Frequently asked questions
Agent “jasmine-expert” — where do I put it?
for Claude Code in .claude/skills/jasmine-expert/SKILL.md, for Codex in .agents/skills, for Copilot in .github/skills and for Cursor in .cursor/skills or .cursor/rules. Use the “Build a bundle” button to get a zip with the correct structure.
Can I modify it for my own project?
Yes. The license MIT allows modification and commercial use. With “Build a custom version” your project's details are added to the file, and you can edit the text afterward.
This Agent Which tools does it work with?
With Claude Code, Codex, Cursor, Gemini CLI. Standard Agent Skills are read by all modern coding agents.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Capture screenshots of web apps during development using Playwright and PIL. Supports full-page captures, interactive states, and an iterate-on-crop workflow that avoids slow re-screenshots.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Run a read-only audit for missing, weak, stale, or mis-scoped test coverage. If the user does not name a scope, audit the full repository and identify important code paths, routes,…