@cypress/json-schemas
Advanced tools
Comparing version 2.0.5 to 2.1.0
import { VersionedSchema } from '@cypress/schema-tools'; | ||
export declare const PutInstanceRequest: VersionedSchema; | ||
export declare const Screenshot: VersionedSchema; | ||
export declare const ScreenshotUploadUrl: VersionedSchema; | ||
export declare const PutInstanceResponse: VersionedSchema; |
@@ -8,4 +8,3 @@ "use strict"; | ||
exports.PutInstanceRequest = schema_tools_1.versionSchemas(put_request_1.PutInstanceRequest100); | ||
exports.Screenshot = schema_tools_1.versionSchemas(put_request_1.Screenshot100); | ||
exports.ScreenshotUploadUrl = schema_tools_1.versionSchemas(screenshot_upload_url_1.ScreenshotUploadUrl100); | ||
exports.PutInstanceResponse = schema_tools_1.versionSchemas(put_response_1.PutInstanceResponse100); |
import { ObjectSchema, PlainObject } from '@cypress/schema-tools'; | ||
import { TestFromRunnerExample100 } from '../test-information'; | ||
export declare const Screenshot100: ObjectSchema; | ||
import { ScreenshotExample100 } from '../screenshot'; | ||
export declare type PutInstanceRequestExample100 = { | ||
@@ -12,4 +12,4 @@ cypressConfig: PlainObject; | ||
video: boolean; | ||
screenshots: PlainObject[]; | ||
screenshots: ScreenshotExample100[]; | ||
}; | ||
export declare const PutInstanceRequest100: ObjectSchema; |
@@ -15,55 +15,3 @@ "use strict"; | ||
var cypress_stats_1 = require("./cypress-stats"); | ||
exports.Screenshot100 = { | ||
version: { | ||
major: 1, | ||
minor: 0, | ||
patch: 0, | ||
}, | ||
schema: { | ||
title: 'Screenshot', | ||
type: 'object', | ||
properties: { | ||
clientId: { | ||
type: 'string', | ||
format: 'uuid', | ||
description: 'Random UUID to keep track of the screenshot', | ||
}, | ||
testId: { | ||
type: 'string', | ||
description: 'Internal test id assigned by the test runner', | ||
}, | ||
testTitle: { | ||
type: 'array', | ||
items: { | ||
type: 'string', | ||
}, | ||
description: 'Parts of the full test name', | ||
}, | ||
height: { | ||
type: 'integer', | ||
minimum: 0, | ||
description: 'image height in pixels', | ||
}, | ||
width: { | ||
type: 'integer', | ||
minimum: 0, | ||
description: 'image width in pixels', | ||
}, | ||
}, | ||
required: ['clientId', 'testId', 'testTitle', 'height', 'width'], | ||
additionalProperties: false, | ||
}, | ||
example: { | ||
clientId: '40c0e9ae-354d-49cd-9af9-3d886a66380e', | ||
testId: 'r4', | ||
testTitle: [ | ||
'simple failing hook spec', | ||
'beforeEach hooks', | ||
'never gets here', | ||
'"before each" hook', | ||
], | ||
height: 720, | ||
width: 1280, | ||
}, | ||
}; | ||
var screenshot_1 = require("../screenshot"); | ||
var example100 = { | ||
@@ -77,3 +25,3 @@ cypressConfig: {}, | ||
video: true, | ||
screenshots: [exports.Screenshot100.example], | ||
screenshots: [screenshot_1.screenshotExample100], | ||
}; | ||
@@ -116,3 +64,3 @@ exports.PutInstanceRequest100 = { | ||
type: 'array', | ||
items: __assign({}, exports.Screenshot100.schema), | ||
items: __assign({}, screenshot_1.Screenshot100.schema), | ||
see: 'Screenshot[]', | ||
@@ -119,0 +67,0 @@ }, |
@@ -9,2 +9,3 @@ "use strict"; | ||
var instance_2 = require("./instance"); | ||
var screenshot_1 = require("./screenshot"); | ||
var mocha_stats_1 = require("./instance/mocha-stats"); | ||
@@ -20,2 +21,2 @@ var cypress_stats_1 = require("./instance/cypress-stats"); | ||
var ci_1 = require("./ci"); | ||
exports.schemas = schema_tools_1.combineSchemas(commit_1.CommitInformation, cypress_stats_1.CypressStats, index_1.GetRunResponse, hook_1.Hook, instance_1.Instance, instance_1.GetInstanceResponse, mocha_stats_1.MochaReporterStats, platform_1.PlatformInformation, request_2.PostRunInstanceRequest, request_1.PostRunRequest, response_1.PostRunResponse, instance_2.PutInstanceRequest, instance_2.PutInstanceResponse, instance_2.Screenshot, instance_2.ScreenshotUploadUrl, test_information_1.TestFromRunner, test_information_1.TestInformation, test_screenshot_1.TestScreenshot, video_1.Video, ci_1.CiInformation); | ||
exports.schemas = schema_tools_1.combineSchemas(commit_1.CommitInformation, cypress_stats_1.CypressStats, index_1.GetRunResponse, hook_1.Hook, instance_1.Instance, instance_1.GetInstanceResponse, mocha_stats_1.MochaReporterStats, platform_1.PlatformInformation, request_2.PostRunInstanceRequest, request_1.PostRunRequest, response_1.PostRunResponse, instance_2.PutInstanceRequest, instance_2.PutInstanceResponse, screenshot_1.Screenshot, instance_2.ScreenshotUploadUrl, test_information_1.TestFromRunner, test_information_1.TestInformation, test_screenshot_1.TestScreenshot, video_1.Video, ci_1.CiInformation); |
{ | ||
"name": "@cypress/json-schemas", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"description": "Cypress JSON schemas", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
66793
48
1997