umbraco-unit-testing

Test Umbraco backoffice extensions with @open-wc/testing.

26|13|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/umbraco/Umbraco-CMS-Backoffice-Skills --skill umbraco-unit-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: umbraco-unit-testing
Source: https://github.com/umbraco/Umbraco-CMS-Backoffice-Skills/tree/main/plugins/umbraco-testing-skills/skills/umbraco-unit-testing
Command: npx skills add https://github.com/umbraco/Umbraco-CMS-Backoffice-Skills --skill umbraco-unit-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides the tools and guidance to write robust unit and component tests for Umbraco backoffice extensions, ensuring code quality and stability.

Core Features & Use Cases

  • Unit Testing: Write isolated tests for logic, state management, and utility functions.
  • Component Testing: Test Lit element rendering and interactions within the Umbraco context.
  • Mocking: Offers strategies for mocking Umbraco dependencies for faster, more isolated tests.
  • Use Case: You've developed a custom Umbraco backoffice component and want to ensure its state updates correctly and its UI renders as expected under various conditions.

Quick Start

Configure your project to use @open-wc/testing by adding the specified dependencies to your package.json.

Frequently Asked Questions about umbraco-unit-testing

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

FAQPage Schema
How do I write unit tests for Umbraco backoffice extensions?

How do I test Lit element rendering in an Umbraco backoffice component?

How do I test Lit element rendering in an Umbraco backoffice component?

Can I mock Umbraco dependencies for faster unit tests?

Can I mock Umbraco dependencies for faster unit tests?

What is the best way to test observable subscriptions in Umbraco?

What is the best way to test observable subscriptions in Umbraco?

Do I need full Umbraco context integration for component testing?

Do I need full Umbraco context integration for component testing?

What dependencies do I need to add for Umbraco component testing?

What dependencies do I need to add for Umbraco component testing?

Dependencies for Umbraco component testing must be added to your package.json, specifically configuring your project to use the @open-wc/testing framework for testing backoffice extensions.