Skip to main content
Version: 4.7.8

Test cases - Create single

Create a single test case with createTestCase().

Example

typescript
const caseId = await createTestCase({
pipelineSlug: "example-pipeline",
name: "Example test case",
inputs: { a: 1, b: 2 },
expectedOutputs: { c: 3 },
});
 
console.log("Case ID: ", caseId);

Arguments

payload: CreateTestCase

Types

🛠️ CreateTestCase

This type defines the structure for creating a new test case. Below are the fields of the CreateTestCase type.

pipelineSlug?: string

name?: string

inputs?: object

expectedOutputs?: object

Return value

caseId: string (UUID)