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.

analytics.dashboard.list.test

Verifies dashboard listing

  • Type: test-spec (test-spec)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @example.analytics-dashboard
  • Tags: analytics, dashboard, test
  • File: packages/examples/analytics-dashboard/src/dashboard/dashboard.test-spec.ts
  • field.key.label
    analytics.dashboard.list.test
    field.version.label
    1.0.0
    field.type.label
    test-spec (test-spec)
    field.title.label
    analytics.dashboard.list.test
    field.description.label

    Verifies dashboard listing

  • Type: test-spec (test-spec)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @example.analytics-dashboard
  • Tags: analytics, dashboard, test
  • File: packages/examples/analytics-dashboard/src/dashboard/dashboard.test-spec.ts
  • field.tags.label
    analytics,dashboard,test
    field.owners.label
    @example.analytics-dashboard
    field.stability.label
    stable

    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',
    				},
    			],
    		},
    	],
    });