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.
Test for creating review
Source Definition
import { defineTestSpec } from '@lssm-tech/lib.contracts-spec/tests';
export const ReviewCreateTest = defineTestSpec({
meta: {
key: 'marketplace.review.create.test',
version: '1.0.0',
stability: 'experimental',
owners: ['@example.marketplace'],
description: 'Test for creating review',
tags: ['test'],
},
target: {
type: 'operation',
operation: { key: 'marketplace.review.create', version: '1.0.0' },
},
scenarios: [
{
key: 'success',
when: { operation: { key: 'marketplace.review.create' } },
then: [{ type: 'expectOutput', match: {} }],
},
{
key: 'error',
when: { operation: { key: 'marketplace.review.create' } },
then: [{ type: 'expectError' }],
},
],
});