This is a fluent builder library for creating Umbraco backoffice test data without all the boilerplate. Instead of manually constructing JSON models for document types, content, media, and data types in your tests, you get chainable builders with sensible defaults. The nested builder pattern with done() and build() methods keeps complex structures readable, especially when you're setting up block lists or document types with multiple property groups. It's maintained by the Umbraco core team and primarily used in their E2E and MSW testing setups. If you're writing integration tests for Umbraco projects and tired of massive object literals, this will clean things up considerably.

skills.sh installs
370
GitHub stars
27
last updated
Aug 21, 2026

Install

$ npx -y skills add umbraco/umbraco-cms-backoffice-skills --skill umbraco-test-builders --agent claude-code

Installs into .claude/skills of the current project.

Files

Umbraco Test Builders

What is it?

The @umbraco/json-models-builders package provides fluent builder classes for creating Umbraco backoffice models. These builders simplify test data creation with sensible defaults and chainable configuration methods.

Documentation

Related Skills

  • umbraco-testing - Master skill for testing overview
  • umbraco-e2e-testing - E2E testing (primary user of builders)
  • umbraco-msw-testing - MSW testing (can use builders for mock data)

Installation

npm install @umbraco/json-models-builders

Builder Pattern

All builders follow this pattern:

const model = new SomeBuilder()
  .withProperty(value)        // Configure scalar properties
  .withOtherProperty(value)   // Chain multiple configurations
  .addChild()                 // Create nested builder
    .withChildProperty(value)
    .done()                   // Return to parent builder

Sponsors

Details

Repository
github.com/umbraco/umbraco-cms-backoffice-skills
Categories
Testing & QA, .NET & C#
First seen
Jun 3, 2026

More from umbraco/umbraco-cms-backoffice-skills

All 76
1umbraco avatarumbraco-testingumbraco/umbraco-cms-backoffice-skillsRouter skill for choosing the right testing approach for Umbraco backoffice extensions368skills.sh installs
2krutikjain avatarandroid-testing-unitkrutikjain/android-agent-skillsWrite fast, focused Android unit tests for reducers, use cases, repositories, and lifecycle-safe state holders.339skills.sh installs
3sickn33 avatartdd-orchestratorsickn33/antigravity-awesome-skillstdd orchestrator334skills.sh installs
4sickn33 avatarjavascript-testing-patternssickn33/antigravity-awesome-skillsjavascript testing patterns308skills.sh installs
5sickn33 avatartest-automatorsickn33/antigravity-awesome-skillstest automator308skills.sh installs
6sickn33 avatartdd-workflows-tdd-cyclesickn33/antigravity-awesome-skillstdd workflows tdd cycle292skills.sh installs