jasmine-skill

Generate Jasmine tests in JavaScript and TypeScript for unit and integration testing.

350|69|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/LambdaTest/agent-skills --skill jasmine-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jasmine-skill
Source: https://github.com/LambdaTest/agent-skills/tree/main/jasmine-skill
Command: npx skills add https://github.com/LambdaTest/agent-skills --skill jasmine-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation and execution of unit and integration tests for JavaScript and TypeScript applications using the Jasmine testing framework.

Core Features & Use Cases

  • BDD Syntax: Write tests using describe, it, and expect for clear, readable test suites.
  • Spies & Mocks: Easily create spies and mock objects to isolate units under test.
  • Async Support: Handle asynchronous operations with async/await and Jasmine's promise matchers.
  • Use Case: Generate a comprehensive suite of unit tests for a new authentication module, including spies to mock API calls and ensure correct error handling.

Quick Start

Generate a basic Jasmine test structure for a calculator class.

Frequently Asked Questions about jasmine-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Jasmine tests for TypeScript and JavaScript applications?

Jasmine tests use BDD-style syntax with `describe`, `it`, and `expect` blocks to create clear, readable unit and integration test suites for JavaScript and TypeScript applications.

How do I mock API calls and isolate units during Jasmine unit testing?

During Jasmine unit testing, you isolate units and mock API calls by creating spies and mock objects, which track function calls and verify correct error handling.

Can I handle asynchronous operations and async/await in Jasmine test suites?

Yes, Jasmine test suites handle asynchronous operations using `async/await` and Jasmine's promise matchers, ensuring tests properly wait for asynchronous operations to complete before asserting results.

Does this approach support running Jasmine tests in local and CI/CD environments?

Yes, this approach facilitates both local and CI/CD execution of Jasmine tests, providing detailed setup and debugging guidance to ensure BDD-style test suites run smoothly across different environments.

What is the best way to structure BDD-style test suites for a new authentication module?

The best way to structure BDD-style test suites for a new authentication module is using `describe` and `it` blocks, incorporating spies to mock API calls and verify correct error handling for robust coverage.

Why use custom matchers in Jasmine integration testing?

Custom matchers in Jasmine integration testing allow you to create domain-specific assertions for clearer test readability, expressing precise expectations that built-in matchers cannot easily verify.