New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cypress/json-schemas

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cypress/json-schemas - npm Package Compare versions

Comparing version 5.34.2 to 5.35.0

dist/util.d.ts

1

dist/formats.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatDefaults = exports.jsonSchemaFormats = exports.formats = exports.semver = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ var dateTime = {

34

dist/index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./schemas"));
exports.allTypes = exports.jsonSchemaFormats = exports.api = void 0;
__exportStar(require("./schemas"), exports);
var formats_1 = require("./formats");
exports.jsonSchemaFormats = formats_1.jsonSchemaFormats;
Object.defineProperty(exports, "jsonSchemaFormats", { enumerable: true, get: function () { return formats_1.jsonSchemaFormats; } });
var formats_2 = require("./formats");
exports.formats = formats_2.formats;
exports.formatDefaults = formats_2.formatDefaults;
Object.defineProperty(exports, "formats", { enumerable: true, get: function () { return formats_2.formats; } });
Object.defineProperty(exports, "formatDefaults", { enumerable: true, get: function () { return formats_2.formatDefaults; } });
__exportStar(require("./objects"), exports);
var allTypes = __importStar(require("./allTypes"));
exports.allTypes = allTypes;
__export(require("@cypress/schema-tools"));
__exportStar(require("@cypress/schema-tools"), exports);
var schemas_1 = require("./schemas");
var schema_tools_1 = require("@cypress/schema-tools");
exports.api = schema_tools_1.bind({ schemas: schemas_1.schemas, formats: formats_1.formats });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ciExample110 = exports.ciExample100 = exports.Ci110 = exports.Ci100 = exports.Ci = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ var ciExample100 = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.commitExample100 = exports.Commit100 = exports.Commit = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ var commitExample100 = {

@@ -17,2 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.GetInstanceResponse = exports.getInstanceDetailsResponseExample100 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -19,0 +20,0 @@ var lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));

@@ -14,2 +14,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.GetRunResponse = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -227,4 +228,4 @@ var ci_1 = require("./ci");

},
runUrl: 'https://dashboard.cypress.io/#/projects/cjvoj7/runs/12',
projectUrl: 'https://dashboard.cypress.io/#/projects/cjvoj7',
runUrl: 'https://dashboard.cypress.io/projects/cjvoj7/runs/12',
projectUrl: 'https://dashboard.cypress.io/projects/cjvoj7',
instances: [instance_1.instanceExample200],

@@ -454,3 +455,20 @@ failedTests: [test_1.testExample100],

});
var GetRunResponse = schema_tools_1.versionSchemas(GetRunResponse100, GetRunResponse200, GetRunResponse210, GetRunResponse220, GetRunResponse230, GetRunResponse240);
var getRunResponseExample250 = Object.assign({}, getRunResponseExample240, {
instances: [instance_1.instanceExample240],
});
var GetRunResponse250 = schema_tools_1.extend(GetRunResponse240, {
schema: {
description: 'Run response with cancellation & hasStdout info on instances',
properties: {
instances: {
type: 'array',
description: 'Summary of individual instances',
items: __assign({}, instance_1.Instance240.schema),
see: instance_1.Instance240,
},
},
},
example: getRunResponseExample250,
});
var GetRunResponse = schema_tools_1.versionSchemas(GetRunResponse100, GetRunResponse200, GetRunResponse210, GetRunResponse220, GetRunResponse230, GetRunResponse240, GetRunResponse250);
exports.GetRunResponse = GetRunResponse;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.schemas = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ var ci_1 = require("./ci");

@@ -67,4 +67,9 @@ import { ObjectSchema } from '@cypress/schema-tools';

declare const instanceExample230: InstanceExample230;
export declare type InstanceExample240 = InstanceExample230 & {
hasStdout: boolean | null;
};
declare const instanceExample240: InstanceExample240;
declare const Instance230: ObjectSchema;
declare const Instance240: ObjectSchema;
declare const Instance: import("@cypress/schema-tools").VersionedSchema;
export { Instance, Instance100, Instance200, Instance210, Instance220, Instance230, instanceExample100, instanceExample200, instanceExample210, instanceExample220, instanceExample230, };
export { Instance, Instance100, Instance200, Instance210, Instance220, Instance230, Instance240, instanceExample100, instanceExample200, instanceExample210, instanceExample220, instanceExample230, instanceExample240, };

@@ -14,2 +14,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceExample240 = exports.instanceExample230 = exports.instanceExample220 = exports.instanceExample210 = exports.instanceExample200 = exports.instanceExample100 = exports.Instance240 = exports.Instance230 = exports.Instance220 = exports.Instance210 = exports.Instance200 = exports.Instance100 = exports.Instance = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -340,2 +341,6 @@ var formats_1 = require("../formats");

exports.instanceExample230 = instanceExample230;
var instanceExample240 = Object.assign({}, instanceExample230, {
hasStdout: false,
});
exports.instanceExample240 = instanceExample240;
var Instance230 = schema_tools_1.extend(Instance220, {

@@ -355,3 +360,15 @@ description: 'Includes screenshot testAttemptIndex',

exports.Instance230 = Instance230;
var Instance = schema_tools_1.versionSchemas(Instance100, Instance200, Instance210, Instance220, Instance230);
var Instance240 = schema_tools_1.extend(Instance230, {
description: 'Includes hasStdout',
schema: {
properties: {
hasStdout: {
type: 'boolean',
},
},
},
example: instanceExample240,
});
exports.Instance240 = Instance240;
var Instance = schema_tools_1.versionSchemas(Instance100, Instance200, Instance210, Instance220, Instance230, Instance240);
exports.Instance = Instance;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Platform = exports.Platform101 = exports.platformExample101 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ exports.platformExample101 = {

@@ -14,2 +14,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PostRunInstanceRequest = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -16,0 +17,0 @@ var test_runner_platform_1 = require("./test-runner-platform");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PostRunInstanceResponse = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ var postRunInstanceResponseExample100 = {

@@ -17,2 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PostRunRequest = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -19,0 +20,0 @@ var lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PostRunResponse = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -37,3 +38,3 @@ var lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));

groupId: 'a-plan-id',
runUrl: 'https://dashboard.cypress.io/#/projects/cjvoj7/runs/12',
runUrl: 'https://dashboard.cypress.io/projects/cjvoj7/runs/12',
};

@@ -40,0 +41,0 @@ var PostRunResponse200 = {

import { ObjectSchema, PlainObject } from '@cypress/schema-tools';
import { TestRunnerCypressStatsExample100 } from './test-runner-cypress-stats';
import { TestRunnerScreenshotExample200, TestRunnerScreenshotExample210 } from './test-runner-screenshot';
import { TestRunnerTestExample100, TestRunnerTestExample110 } from './test-runner-test';
import { TestRunnerTestExample100, TestRunnerTestExample110, TestRunnerTestExample200 } from './test-runner-test';
export declare type PutInstanceRequestExample200 = {

@@ -20,4 +20,9 @@ cypressConfig: PlainObject;

};
export declare type PutInstanceRequestExample300 = Omit<PutInstanceRequestExample210, 'tests' | 'screenshots' | 'stdout'> & {
tests: TestRunnerTestExample200[] | null;
screenshots: TestRunnerScreenshotExample210[] | null;
};
export declare const PutInstanceRequest200: ObjectSchema;
export declare const PutInstanceRequest210: ObjectSchema;
export declare const PutInstanceRequest300: ObjectSchema;
export declare const PutInstanceRequest: import("@cypress/schema-tools").VersionedSchema;

@@ -17,4 +17,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PutInstanceRequest = exports.PutInstanceRequest300 = exports.PutInstanceRequest210 = exports.PutInstanceRequest200 = void 0;
var lodash_merge_1 = __importDefault(require("lodash.merge"));
var schema_tools_1 = require("@cypress/schema-tools");
var lodash_omit_1 = __importDefault(require("lodash.omit"));
var test_runner_cypress_stats_1 = require("./test-runner-cypress-stats");

@@ -198,2 +200,23 @@ var test_runner_hook_1 = require("./test-runner-hook");

});
exports.PutInstanceRequest = schema_tools_1.versionSchemas(PutInstanceRequest100, exports.PutInstanceRequest200, exports.PutInstanceRequest210);
var example300 = __assign(__assign({}, lodash_omit_1.default(example200, 'stdout')), { tests: [test_runner_test_1.testRunnerTestExample200], screenshots: [test_runner_screenshot_1.testRunnerScreenshotExample210] });
exports.PutInstanceRequest300 = {
version: {
major: 3,
minor: 0,
patch: 0,
},
schema: {
title: 'PutInstanceRequest',
type: 'object',
description: 'Sent with result of running an instance',
properties: __assign(__assign({}, lodash_omit_1.default(exports.PutInstanceRequest210.schema.properties, 'stdout')), { tests: {
type: ['array', 'null'],
items: __assign({}, test_runner_test_1.TestRunnerTest200.schema),
see: test_runner_test_1.TestRunnerTest200,
} }),
required: [],
additionalProperties: false,
},
example: example300,
};
exports.PutInstanceRequest = schema_tools_1.versionSchemas(PutInstanceRequest100, exports.PutInstanceRequest200, exports.PutInstanceRequest210, exports.PutInstanceRequest300);

@@ -14,2 +14,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.PutInstanceResponse = exports.PutInstanceResponse200 = exports.PutInstanceResponse100 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -16,0 +17,0 @@ var screenshot_upload_url_1 = require("./screenshot-upload-url");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PutInstanceStdoutRequest = exports.PutInstanceStdoutRequest100 = exports.putInstanceStdoutRequestExample100 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ exports.putInstanceStdoutRequestExample100 = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScreenshotUploadUrl = exports.ScreenshotUploadUrl200 = exports.ScreenshotUploadUrl100 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ var example100 = {

@@ -17,4 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Screenshot = exports.Screenshot110 = exports.Screenshot100 = exports.screenshotExample110 = exports.screenshotExample100 = void 0;
var lodash_merge_1 = __importDefault(require("lodash.merge"));
var schema_tools_1 = require("@cypress/schema-tools");
var lodash_merge_1 = __importDefault(require("lodash.merge"));
exports.screenshotExample100 = {

@@ -21,0 +22,0 @@ height: 1904,

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TestRunnerCi = exports.TestRunnerCi110 = exports.testRunnerCiExample110 = exports.TestRunnerCi100 = exports.testRunnerCiExample100 = void 0;
var lodash_omit_1 = __importDefault(require("lodash.omit"));

@@ -8,0 +9,0 @@ var lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.testRunnerCommitExample110 = exports.testRunnerCommitExample100 = exports.TestRunnerCommit110 = exports.TestRunnerCommit100 = exports.TestRunnerCommit = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ var testRunnerCommitExample100 = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestRunnerCypressStats = exports.TestRunnerCypressStats100 = exports.testRunnerCypressStatsExample100 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ exports.testRunnerCypressStatsExample100 = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestRunnerHook = exports.TestRunnerHook100 = exports.testRunnerHookExample100 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ exports.testRunnerHookExample100 = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestRunnerMochaReporterStats = exports.TestRunnerMochaReporterStats100 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ exports.TestRunnerMochaReporterStats100 = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestRunnerPlatform = exports.TestRunnerPlatform100 = exports.testRunnerPlatformExample100 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ exports.testRunnerPlatformExample100 = {

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TestRunnerScreenshot = exports.TestRunnerScreenshot210 = exports.testRunnerScreenshotExample210 = exports.TestRunnerScreenshot200 = exports.testRunnerScreenshotExample200 = exports.TestRunnerScreenshot100 = exports.testRunnerScreenshotExample100 = void 0;
var lodash_merge_1 = __importDefault(require("lodash.merge"));

@@ -8,0 +9,0 @@ var schema_tools_1 = require("@cypress/schema-tools");

@@ -1,8 +0,5 @@

import { ObjectSchema, PlainObject, JsonProperties } from '@cypress/schema-tools';
import { ObjectSchema, PlainObject } from '@cypress/schema-tools';
import { ISODateString, hookId, milliseconds, testId, testState } from '../objects';
export declare type TestRunnerTestCommonFields = {
state: testState;
stack: string | null;
error: string | null;
timings: PlainObject | null;
failedFromHookId: hookId | null;

@@ -13,3 +10,9 @@ wallClockStartedAt: ISODateString | null;

};
export declare type TestRunnerTestExample100 = TestRunnerTestCommonFields & {
export declare type TestRunnerTestCommonV1Fields = {
state: testState;
stack: string | null;
error: string | null;
timings: PlainObject | null;
};
export declare type TestRunnerTestExample100 = TestRunnerTestCommonFields & TestRunnerTestCommonV1Fields & {
testId: testId;

@@ -20,9 +23,434 @@ title: string[];

export declare type TestRunnerTestExample110 = TestRunnerTestExample100 & {
prevAttempts: TestRunnerTestCommonFields[];
prevAttempts?: TestRunnerTestCommonV1Fields[] | null;
};
export declare const testRunnerTestExample100: TestRunnerTestExample100;
export declare const testRunnerTestExample110: TestRunnerTestExample110;
export declare const CommonTestProperties: JsonProperties;
export declare const TestRunnerTest100: ObjectSchema;
export declare const BaseTestProperties: {
state: {
type: "string";
format: string;
};
};
export declare const BaseTestExecutionProperties: {
failedFromHookId: {
type: string[];
format: string;
};
wallClockStartedAt: {
type: string[];
format: string;
};
wallClockDuration: {
type: string[];
minimum: number;
};
videoTimestamp: {
type: string[];
};
state: {
type: "string";
format: string;
};
};
export declare const CommonTestProperties: {
testId: {
type: "string";
format: string;
description: string;
};
title: {
type: "array";
items: {
type: "string";
};
};
body: {
type: string[];
description: string;
};
state: {
type: "string";
format: string;
};
};
export declare const CommonTestPropertiesV1: {
stack: {
type: string[];
description: string;
};
error: {
type: string[];
description: string;
};
timings: {
type: string[];
description: string;
properties: {
lifecycle: {
type: "integer";
minimum: number;
description: string;
};
'before each': {
type: "array";
items: {
type: "object";
};
};
};
};
failedFromHookId: {
type: string[];
format: string;
};
wallClockStartedAt: {
type: string[];
format: string;
};
wallClockDuration: {
type: string[];
minimum: number;
};
videoTimestamp: {
type: string[];
};
state: {
type: "string";
format: string;
};
testId: {
type: "string";
format: string;
description: string;
};
title: {
type: "array";
items: {
type: "string";
};
};
body: {
type: string[];
description: string;
};
};
export declare const TestRunnerTest100: {
version: {
major: number;
minor: number;
patch: number;
};
schema: {
title: string;
description: string;
type: "object";
properties: {
stack: {
type: string[];
description: string;
};
error: {
type: string[];
description: string;
};
timings: {
type: string[];
description: string;
properties: {
lifecycle: {
type: "integer";
minimum: number;
description: string;
};
'before each': {
type: "array";
items: {
type: "object";
};
};
};
};
failedFromHookId: {
type: string[];
format: string;
};
wallClockStartedAt: {
type: string[];
format: string;
};
wallClockDuration: {
type: string[];
minimum: number;
};
videoTimestamp: {
type: string[];
};
state: {
type: "string";
format: string;
};
testId: {
type: "string";
format: string;
description: string;
};
title: {
type: "array";
items: {
type: "string";
};
};
body: {
type: string[];
description: string;
};
};
required: true;
additionalProperties: false;
};
example: TestRunnerTestExample100;
};
export declare const TestRunnerTest110: ObjectSchema;
export declare type TestRunnerTestErrorExample100 = {
name: string | null;
message: string | null;
stack: string | null;
};
export declare type TestRunnerTestAttemptExample100 = Pick<TestRunnerTestExample100, 'state' | 'videoTimestamp' | 'wallClockDuration' | 'wallClockStartedAt' | 'failedFromHookId'> & {
error: TestRunnerTestErrorExample100 | null;
timings: PlainObject | null;
};
export declare type TestRunnerTestExample200 = Pick<TestRunnerTestExample100, 'title' | 'body' | 'state' | 'testId'> & {
displayError: string;
attempts: TestRunnerTestAttemptExample100[];
};
export declare const testRunnerTestErrorExample100: TestRunnerTestErrorExample100;
export declare const testRunnerTestAttemptExample100: TestRunnerTestAttemptExample100;
export declare const testRunnerTestExample200: TestRunnerTestExample200;
export declare const TestRunnerTestError100: {
version: {
major: number;
minor: number;
patch: number;
};
schema: {
type: "object";
title: string;
description: string;
properties: {
name: {
type: string[];
description: string;
};
message: {
type: string[];
description: string;
};
stack: {
type: string[];
description: string;
};
};
additionalProperties: true;
};
example: TestRunnerTestErrorExample100;
};
export declare const TestRunnerTestAttempt100: {
version: {
major: number;
minor: number;
patch: number;
};
schema: {
type: "object";
title: string;
description: string;
properties: {
error: {
type: string[];
};
timings: {
type: string[];
description: string;
properties: {
lifecycle: {
type: "integer";
minimum: number;
description: string;
};
'before each': {
type: "array";
items: {
type: "object";
};
};
};
};
failedFromHookId: {
type: string[];
format: string;
};
wallClockStartedAt: {
type: string[];
format: string;
};
wallClockDuration: {
type: string[];
minimum: number;
};
videoTimestamp: {
type: string[];
};
state: {
type: "string";
format: string;
};
};
additionalProperties: false;
};
example: TestRunnerTestExample200;
};
export declare const TestRunnerTest200: {
version: {
major: number;
minor: number;
patch: number;
};
schema: {
type: "object";
title: string;
properties: {
displayError: {
type: string[];
};
attempts: {
type: string[];
items: {
type: "object";
title: string;
description: string;
properties: {
error: {
type: string[];
};
timings: {
type: string[];
description: string;
properties: {
lifecycle: {
type: "integer";
minimum: number;
description: string;
};
'before each': {
type: "array";
items: {
type: "object";
};
};
};
};
failedFromHookId: {
type: string[];
format: string;
};
wallClockStartedAt: {
type: string[];
format: string;
};
wallClockDuration: {
type: string[];
minimum: number;
};
videoTimestamp: {
type: string[];
};
state: {
type: "string";
format: string;
};
};
additionalProperties: false;
};
see: {
version: {
major: number;
minor: number;
patch: number;
};
schema: {
type: "object";
title: string;
description: string;
properties: {
error: {
type: string[];
};
timings: {
type: string[];
description: string;
properties: {
lifecycle: {
type: "integer";
minimum: number;
description: string;
};
'before each': {
type: "array";
items: {
type: "object";
};
};
};
};
failedFromHookId: {
type: string[];
format: string;
};
wallClockStartedAt: {
type: string[];
format: string;
};
wallClockDuration: {
type: string[];
minimum: number;
};
videoTimestamp: {
type: string[];
};
state: {
type: "string";
format: string;
};
};
additionalProperties: false;
};
example: TestRunnerTestExample200;
};
};
testId: {
type: "string";
format: string;
description: string;
};
title: {
type: "array";
items: {
type: "string";
};
};
body: {
type: string[];
description: string;
};
state: {
type: "string";
format: string;
};
};
required: true;
additionalProperties: false;
};
example: TestRunnerTestExample200;
};
export declare const TestRunnerTest: import("@cypress/schema-tools").VersionedSchema;

@@ -17,10 +17,16 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TestRunnerTest = exports.TestRunnerTest200 = exports.TestRunnerTestAttempt100 = exports.TestRunnerTestError100 = exports.testRunnerTestExample200 = exports.testRunnerTestAttemptExample100 = exports.testRunnerTestErrorExample100 = exports.TestRunnerTest110 = exports.TestRunnerTest100 = exports.CommonTestPropertiesV1 = exports.CommonTestProperties = exports.BaseTestExecutionProperties = exports.BaseTestProperties = exports.testRunnerTestExample110 = exports.testRunnerTestExample100 = void 0;
var lodash_merge_1 = __importDefault(require("lodash.merge"));
var schema_tools_1 = require("@cypress/schema-tools");
var formats_1 = require("../formats");
var lodash_1 = __importDefault(require("lodash"));
var util_1 = require("../util");
var testRunnerTestCommon = {
state: 'failed',
stack: 'Error: fail1\n\nBecause this error occurred during a \'before each\' hook we are skipping the remaining tests in the current suite: \'beforeEach hooks\'\n at stack trace line',
error: 'fail1\n\nBecause this error occurred during a \'before each\' hook we are skipping the remaining tests in the current suite: \'beforeEach hooks\'',
timings: {
failedFromHookId: 'h1',
wallClockStartedAt: '2018-02-01T20:14:19.323Z',
wallClockDuration: 1234,
videoTimestamp: 9999,
};
var testRunnerTestCommonV1 = __assign(__assign({}, testRunnerTestCommon), { stack: 'Error: fail1\n\nBecause this error occurred during a \'before each\' hook we are skipping the remaining tests in the current suite: \'beforeEach hooks\'\n at stack trace line', error: 'fail1\n\nBecause this error occurred during a \'before each\' hook we are skipping the remaining tests in the current suite: \'beforeEach hooks\'', timings: {
lifecycle: 100,

@@ -34,13 +40,8 @@ 'before each': [

],
},
failedFromHookId: 'h1',
wallClockStartedAt: '2018-02-01T20:14:19.323Z',
wallClockDuration: 1234,
videoTimestamp: 9999,
};
exports.testRunnerTestExample100 = __assign({ testId: 'r4', title: ['simple failing hook spec', 'beforeEach hooks', 'never gets here'], body: 'function () {}' }, testRunnerTestCommon);
} });
exports.testRunnerTestExample100 = __assign({ testId: 'r4', title: ['simple failing hook spec', 'beforeEach hooks', 'never gets here'], body: 'function () {}' }, testRunnerTestCommonV1);
exports.testRunnerTestExample110 = __assign(__assign({}, exports.testRunnerTestExample100), { prevAttempts: [
__assign({}, testRunnerTestCommon),
__assign({}, testRunnerTestCommonV1),
] });
exports.CommonTestProperties = {
exports.BaseTestProperties = {
state: {

@@ -50,11 +51,35 @@ type: 'string',

},
stack: {
};
exports.BaseTestExecutionProperties = __assign(__assign({}, exports.BaseTestProperties), { failedFromHookId: {
type: ['string', 'null'],
format: formats_1.formats.hookId.name,
}, wallClockStartedAt: {
type: ['string', 'null'],
format: 'date-time',
}, wallClockDuration: {
type: ['integer', 'null'],
minimum: 0,
}, videoTimestamp: {
type: ['integer', 'null'],
} });
exports.CommonTestProperties = __assign(__assign({}, exports.BaseTestProperties), { testId: {
type: 'string',
format: formats_1.formats.testId.name,
description: 'Internal short test id set by the test runner',
}, title: {
type: 'array',
items: {
type: 'string',
},
}, body: {
type: ['string', 'null'],
description: 'Source code of the test',
} });
exports.CommonTestPropertiesV1 = __assign(__assign(__assign({}, exports.CommonTestProperties), exports.BaseTestExecutionProperties), { stack: {
type: ['string', 'null'],
description: 'Error stack as a string',
},
error: {
}, error: {
type: ['string', 'null'],
description: 'If there was an error, its message',
},
timings: {
}, timings: {
type: ['object', 'null'],

@@ -75,20 +100,4 @@ description: 'Collected timings',

},
},
failedFromHookId: {
type: ['string', 'null'],
format: formats_1.formats.hookId.name,
},
wallClockStartedAt: {
type: ['string', 'null'],
format: 'date-time',
},
wallClockDuration: {
type: ['integer', 'null'],
minimum: 0,
},
videoTimestamp: {
type: ['integer', 'null'],
},
};
exports.TestRunnerTest100 = {
} });
exports.TestRunnerTest100 = util_1.objSchema({
version: {

@@ -103,15 +112,3 @@ major: 1,

type: 'object',
properties: __assign({ testId: {
type: 'string',
format: formats_1.formats.testId.name,
description: 'Internal short test id set by the test runner',
}, title: {
type: 'array',
items: {
type: 'string',
},
}, body: {
type: ['string', 'null'],
description: 'Source code of the test',
} }, exports.CommonTestProperties),
properties: __assign({}, exports.CommonTestPropertiesV1),
required: true,

@@ -121,3 +118,3 @@ additionalProperties: false,

example: exports.testRunnerTestExample100,
};
});
exports.TestRunnerTest110 = lodash_merge_1.default({}, exports.TestRunnerTest100, {

@@ -135,3 +132,3 @@ version: {

description: 'Previous attempts of the test',
properties: __assign({}, exports.CommonTestProperties),
properties: __assign({}, exports.CommonTestPropertiesV1),
},

@@ -142,2 +139,75 @@ },

});
exports.TestRunnerTest = schema_tools_1.versionSchemas(exports.TestRunnerTest100, exports.TestRunnerTest110);
exports.testRunnerTestErrorExample100 = {
name: 'AssertionError',
message: 'expected #greeting to include \'Hi brian-mann\'',
stack: '<stack trace>',
};
exports.testRunnerTestAttemptExample100 = __assign({ error: exports.testRunnerTestErrorExample100, timings: testRunnerTestCommonV1.timings }, testRunnerTestCommon);
exports.testRunnerTestExample200 = __assign(__assign({ testId: 'r4', title: ['simple failing hook spec', 'beforeEach hooks', 'never gets here'], body: 'function () {}' }, lodash_1.default.omit(testRunnerTestCommon, 'error', 'timings', 'stack', 'videoTimestamp', 'wallClockDuration', 'failedFromHookId', 'wallClockStartedAt')), { displayError: 'Attempt #1-3: AssertionError: expected #greeting to include \'Hi brian-mann\' <stack trace>', attempts: [exports.testRunnerTestAttemptExample100] });
exports.TestRunnerTestError100 = util_1.objSchema({
version: {
major: 1,
minor: 0,
patch: 0,
},
schema: {
type: 'object',
title: 'testRunner.testError',
description: 'Formatted error from the test runner',
properties: {
name: {
type: ['string', 'null'],
description: 'Name of the error as a string',
},
message: {
type: ['string', 'null'],
description: 'Error message',
},
stack: {
type: ['string', 'null'],
description: 'Stack trace of the error',
},
},
additionalProperties: true,
},
example: exports.testRunnerTestErrorExample100,
});
exports.TestRunnerTestAttempt100 = util_1.objSchema({
version: {
major: 1,
minor: 0,
patch: 0,
},
schema: {
type: 'object',
title: 'testRunner.testAttempt',
description: 'An attempt at running a test',
properties: __assign(__assign(__assign({}, exports.BaseTestProperties), exports.BaseTestExecutionProperties), { error: {
type: ['object', 'null'],
}, timings: exports.CommonTestPropertiesV1.timings }),
additionalProperties: false,
},
example: exports.testRunnerTestExample200,
});
exports.TestRunnerTest200 = util_1.objSchema({
version: {
major: 2,
minor: 0,
patch: 0,
},
schema: {
type: 'object',
title: 'testRunner.test',
properties: __assign(__assign({}, exports.CommonTestProperties), { displayError: {
type: ['string', 'null'],
}, attempts: {
type: ['array'],
items: __assign({}, exports.TestRunnerTestAttempt100.schema),
see: exports.TestRunnerTestAttempt100,
} }),
required: true,
additionalProperties: false,
},
example: exports.testRunnerTestExample200,
});
exports.TestRunnerTest = schema_tools_1.versionSchemas(exports.TestRunnerTest100, exports.TestRunnerTest110, exports.TestRunnerTest200);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Test = exports.Test100 = exports.testExample100 = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ exports.testExample100 = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Video = exports.Video100 = exports.video100Example = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ exports.video100Example = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.warningExample100 = exports.Warning100 = exports.Warning = void 0;
var schema_tools_1 = require("@cypress/schema-tools");

@@ -4,0 +5,0 @@ var warningExample100 = {

{
"name": "@cypress/json-schemas",
"version": "5.34.2",
"version": "5.35.0",
"description": "Cypress JSON schemas",

@@ -18,5 +18,4 @@ "main": "dist",

"pretest": "npm run build",
"test": "npm run unit",
"posttest": "npm run document",
"unit": "ava-ts --verbose test/*-test.ts"
"test": "ava --verbose ./test/*-test.ts",
"posttest": "npm run document"
},

@@ -36,8 +35,7 @@ "husky": {

"@cypress/eslint-plugin-dev": "5.0.0",
"@types/node": "9.6.55",
"@types/node": "9.6.56",
"@types/ramda": "0.25.47",
"@typescript-eslint/eslint-plugin": "2.29.0",
"@typescript-eslint/parser": "2.29.0",
"ava": "0.25.0",
"ava-ts": "0.25.2",
"@typescript-eslint/eslint-plugin": "2.34.0",
"@typescript-eslint/parser": "2.34.0",
"ava": "^1.0.1",
"deps-ok": "1.4.1",

@@ -51,4 +49,4 @@ "eslint": "6.8.0",

"stop-build": "1.1.0",
"ts-node": "8.9.0",
"typescript": "3.8.3"
"ts-node": "8.10.2",
"typescript": "3.9.5"
},

@@ -73,2 +71,11 @@ "files": [

},
"ava": {
"compileEnhancements": false,
"extensions": [
"ts"
],
"require": [
"ts-node/register"
]
},
"publishConfig": {

@@ -75,0 +82,0 @@ "access": "public"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc