OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Verifies dashboard listing
Source Definition
import { defineTestSpec } from '@lssm-tech/lib.contracts-spec/tests';
export const ListDashboardsTest = defineTestSpec({
meta: {
key: 'analytics.dashboard.list.test',
version: '1.0.0',
title: 'List Dashboards Test',
description: 'Verifies dashboard listing',
owners: ['@example.analytics-dashboard'],
tags: ['analytics', 'dashboard', 'test'],
stability: 'stable',
},
target: {
type: 'operation',
operation: { key: 'analytics.dashboard.list', version: '1.0.0' },
},
scenarios: [
{
key: 'success',
description: 'Successfully list dashboards',
when: {
operation: { key: 'analytics.dashboard.list', version: '1.0.0' },
input: { limit: 10, offset: 0 },
},
then: [
{
type: 'expectOutput',
match: {
items: [],
total: 0,
},
},
],
},
{
key: 'error-invalid-format',
description: 'Fail with invalid pagination',
when: {
operation: { key: 'analytics.dashboard.list', version: '1.0.0' },
input: { limit: -1 },
},
then: [
{
type: 'expectError',
messageIncludes: 'VALIDATION_ERROR',
},
],
},
],
});