{"enrichment":{"faq":[{"a":"jasmine-skill teaches you to structure unit tests with Jasmine's BDD-style syntax. Start with a describe block to group related tests, then nest it blocks for individual test cases. Inside each it block, use expect assertions to validate your code's behavior. For example: describe('Calculator', () => { it('should add two numbers', () => { expect(2 + 2).toBe(4); }); }); This pattern keeps your tests organized, readable, and maintainable.","q":"How to write jasmine tests using describe and it blocks?"},{"a":"jasmine-skill covers spies, stubs, and mocks to isolate code under test. Use spyOn to track calls on existing object methods: spyOn(obj, 'method'). Use createSpy to create a standalone spy function: const spy = jasmine.createSpy('myspy'). Both let you verify function calls with matchers like toHaveBeenCalled, toHaveBeenCalledWith, and check call counts. Spies replace the original implementation, letting you test interactions without side effects.","q":"What are spyOn and createSpy in jasmine-skill for mocking?"},{"a":"jasmine-skill provides utilities for testing asynchronous code including promises, async/await, and timeout handling. Use the done callback in it blocks: it('test', (done) => { asyncFunc().then(() => { expect(true).toBe(true); done(); }); }). For async/await, mark your test function as async: it('test', async () => { const result = await asyncFunc(); expect(result).toBe(expected); }). jasmine-skill also includes clock.tick() for controlling time-based operations and testing delayed callbacks.","q":"How does jasmine-skill handle async testing with promises and async/await?"},{"a":"jasmine-skill covers Jasmine testing environment setup with npm, configuration, and CI/CD integration. Install Jasmine via npm, configure jasmine.json with spec patterns and helper files, then run tests with npm scripts. jasmine-skill guides you through integrating with CI/CD pipelines like GitHub Actions, enabling automated test runs on every commit. Proper setup ensures your test suite runs consistently across development and production environments.","q":"What does jasmine-skill include for setting up the testing environment with npm?"},{"a":"jasmine-skill teaches standard expect matchers like toBe, toEqual, toContain, toThrow, and toHaveBeenCalled for validating test assertions. Beyond built-in matchers, jasmine-skill covers advanced patterns including custom matchers that extend Jasmine's assertion library for domain-specific checks. You can define custom matchers in beforeEach or helper files to create reusable, expressive assertions tailored to your application's needs.","q":"What expect matchers and custom matchers does jasmine-skill teach?"},{"a":"jasmine-skill covers advanced patterns for DOM testing and debugging common test failures. Learn to test HTML elements, events, and DOM manipulation using Jasmine with Karma as a test runner. jasmine-skill provides strategies for isolating DOM-related bugs, reading test output, and using browser developer tools to inspect failing tests. Combine beforeEach and afterEach hooks to set up and clean up DOM state between tests, ensuring reliable and maintainable test suites.","q":"How does jasmine-skill help with DOM testing and debugging test failures?"}],"shadow_tags":["bdd-framework","spy-mocking","async-promises","matcher-assertions","test-doubles","spec-organization","coverage-reporting","browser-testing"],"summary_rewrite":"jasmine-skill enables you to craft well-organized unit tests following Jasmine's behavior-driven development patterns. Use describe blocks to group related tests, it blocks to define individual test cases, and expect assertions to validate your code's behavior. Perfect for developers building robust test suites with clear, readable test structure."},"files":[{"bytes":3618,"path":"jasmine-skill/SKILL.md","sha256":"38439207b4ca8545aa37c34afd19a135eb23e0ad3c55090be8f47a2ca186fcab","url":"https://skillfed.io/files/LambdaTest/agent-skills/jasmine-skill/97de3841/SKILL.md"}],"id":"LambdaTest/agent-skills/jasmine-skill","links":{"html":"https://skillfed.io/LambdaTest/agent-skills/jasmine-skill","md":"https://skillfed.io/LambdaTest/agent-skills/jasmine-skill.md","repo":"https://github.com/LambdaTest/agent-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":68,"language":"Python","last_updated":"2026-07-24","license":"MIT","name":"jasmine-skill","publisher":"LambdaTest","stars":339},"relations":{"similar":[{"id":"greedychipmunk/agent-skills/angularjs-unit-test"},{"id":"LambdaTest/agent-skills/jest-skill"},{"id":"LambdaTest/agent-skills/vitest-skill"},{"id":"LambdaTest/agent-skills/mocha-skill"},{"id":"LambdaTest/agent-skills/karma-skill"},{"id":"LambdaTest/agent-skills/protractor-skill"},{"id":"secondsky/claude-skills/jest-generator"},{"id":"cometchat/cometchat-skills/cometchat-angular-testing"},{"id":"supabase/supabase/vitest"},{"id":"secondsky/claude-skills/bun-test-mocking"}]},"slug":{"owner":"LambdaTest","repo":"agent-skills","skill":"jasmine-skill"},"version":"97de3841"}
