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.

marketplace.review.list.test

Test for listing reviews

  • Type: test-spec (test-spec)
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @example.marketplace
  • Tags: test
  • File: packages/examples/marketplace/src/tests/operations.test-spec.ts
  • field.key.label
    marketplace.review.list.test
    field.version.label
    1.0.0
    field.type.label
    test-spec (test-spec)
    field.title.label
    marketplace.review.list.test
    field.description.label

    Test for listing reviews

  • Type: test-spec (test-spec)
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @example.marketplace
  • Tags: test
  • File: packages/examples/marketplace/src/tests/operations.test-spec.ts
  • field.tags.label
    test
    field.owners.label
    @example.marketplace
    field.stability.label
    experimental

    Test for listing reviews

    Source Definition

    import { defineTestSpec } from '@lssm-tech/lib.contracts-spec/tests';
    
    export const ReviewListTest = defineTestSpec({
    	meta: {
    		key: 'marketplace.review.list.test',
    		version: '1.0.0',
    		stability: 'experimental',
    		owners: ['@example.marketplace'],
    		description: 'Test for listing reviews',
    		tags: ['test'],
    	},
    	target: {
    		type: 'operation',
    		operation: { key: 'marketplace.review.list', version: '1.0.0' },
    	},
    	scenarios: [
    		{
    			key: 'success',
    			when: { operation: { key: 'marketplace.review.list' } },
    			then: [{ type: 'expectOutput', match: {} }],
    		},
    		{
    			key: 'error',
    			when: { operation: { key: 'marketplace.review.list' } },
    			then: [{ type: 'expectError' }],
    		},
    	],
    });