@sanity/cli-test 15.0.0 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Mock } from "vitest";
|
|
2
|
+
/** @internal */
|
|
3
|
+
declare const buildStudioSchemasAndManifests: Mock;
|
|
4
|
+
/** @internal */
|
|
5
|
+
declare const formatSchemaValidation: Mock;
|
|
6
|
+
/** @internal */
|
|
7
|
+
declare const getAggregatedSeverity: Mock;
|
|
8
|
+
/** @internal */
|
|
9
|
+
declare const getExtractOptions: Mock;
|
|
10
|
+
/** @internal */
|
|
11
|
+
declare const createSchemaPatternMatcher: Mock;
|
|
12
|
+
/** @internal */
|
|
13
|
+
declare const runSchemaExtraction: Mock;
|
|
14
|
+
/** @internal */
|
|
15
|
+
declare const uploadSchemaToLexicon: Mock;
|
|
16
|
+
/** @internal */
|
|
17
|
+
declare const extractValidationFromSchemaError: Mock;
|
|
18
|
+
/** @internal */
|
|
19
|
+
declare const SchemaExtractionError: Mock;
|
|
20
|
+
/** @internal */
|
|
21
|
+
declare const workerBuildStudioSchemasAndManifests: Mock;
|
|
22
|
+
/** @internal */
|
|
23
|
+
declare const SchemaDeploy: Mock;
|
|
24
|
+
/** @internal */
|
|
25
|
+
declare const SchemaExtractedTrace: Mock;
|
|
26
|
+
/** @internal */
|
|
27
|
+
declare const SchemaExtractionWatchModeTrace: Mock;
|
|
28
|
+
export { SchemaDeploy, SchemaExtractedTrace, SchemaExtractionError, SchemaExtractionWatchModeTrace, buildStudioSchemasAndManifests, createSchemaPatternMatcher, extractValidationFromSchemaError, formatSchemaValidation, getAggregatedSeverity, getExtractOptions, runSchemaExtraction, uploadSchemaToLexicon, workerBuildStudioSchemasAndManifests };
|
|
29
|
+
//# sourceMappingURL=extract.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { vi } from 'vitest';
|
|
2
|
+
/** @internal */ export const buildStudioSchemasAndManifests = vi.fn();
|
|
3
|
+
/** @internal */ export const formatSchemaValidation = vi.fn();
|
|
4
|
+
/** @internal */ export const getAggregatedSeverity = vi.fn();
|
|
5
|
+
/** @internal */ export const getExtractOptions = vi.fn();
|
|
6
|
+
/** @internal */ export const createSchemaPatternMatcher = vi.fn();
|
|
7
|
+
/** @internal */ export const runSchemaExtraction = vi.fn();
|
|
8
|
+
/** @internal */ export const uploadSchemaToLexicon = vi.fn();
|
|
9
|
+
/** @internal */ export const extractValidationFromSchemaError = vi.fn();
|
|
10
|
+
/** @internal */ export const SchemaExtractionError = vi.fn();
|
|
11
|
+
/** @internal */ export const workerBuildStudioSchemasAndManifests = vi.fn();
|
|
12
|
+
/** @internal */ export const SchemaDeploy = vi.fn();
|
|
13
|
+
/** @internal */ export const SchemaExtractedTrace = vi.fn();
|
|
14
|
+
/** @internal */ export const SchemaExtractionWatchModeTrace = vi.fn();
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=extract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/mocks/cli-build/extract.ts"],"sourcesContent":["import {type Mock, vi} from 'vitest'\n\n/** @internal */\nexport const buildStudioSchemasAndManifests: Mock = vi.fn()\n/** @internal */\nexport const formatSchemaValidation: Mock = vi.fn()\n/** @internal */\nexport const getAggregatedSeverity: Mock = vi.fn()\n/** @internal */\nexport const getExtractOptions: Mock = vi.fn()\n/** @internal */\nexport const createSchemaPatternMatcher: Mock = vi.fn()\n/** @internal */\nexport const runSchemaExtraction: Mock = vi.fn()\n/** @internal */\nexport const uploadSchemaToLexicon: Mock = vi.fn()\n/** @internal */\nexport const extractValidationFromSchemaError: Mock = vi.fn()\n/** @internal */\nexport const SchemaExtractionError: Mock = vi.fn()\n/** @internal */\nexport const workerBuildStudioSchemasAndManifests: Mock = vi.fn()\n/** @internal */\nexport const SchemaDeploy: Mock = vi.fn()\n/** @internal */\nexport const SchemaExtractedTrace: Mock = vi.fn()\n/** @internal */\nexport const SchemaExtractionWatchModeTrace: Mock = vi.fn()\n"],"names":["vi","buildStudioSchemasAndManifests","fn","formatSchemaValidation","getAggregatedSeverity","getExtractOptions","createSchemaPatternMatcher","runSchemaExtraction","uploadSchemaToLexicon","extractValidationFromSchemaError","SchemaExtractionError","workerBuildStudioSchemasAndManifests","SchemaDeploy","SchemaExtractedTrace","SchemaExtractionWatchModeTrace"],"mappings":"AAAA,SAAmBA,EAAE,QAAO,SAAQ;AAEpC,cAAc,GACd,OAAO,MAAMC,iCAAuCD,GAAGE,EAAE,GAAE;AAC3D,cAAc,GACd,OAAO,MAAMC,yBAA+BH,GAAGE,EAAE,GAAE;AACnD,cAAc,GACd,OAAO,MAAME,wBAA8BJ,GAAGE,EAAE,GAAE;AAClD,cAAc,GACd,OAAO,MAAMG,oBAA0BL,GAAGE,EAAE,GAAE;AAC9C,cAAc,GACd,OAAO,MAAMI,6BAAmCN,GAAGE,EAAE,GAAE;AACvD,cAAc,GACd,OAAO,MAAMK,sBAA4BP,GAAGE,EAAE,GAAE;AAChD,cAAc,GACd,OAAO,MAAMM,wBAA8BR,GAAGE,EAAE,GAAE;AAClD,cAAc,GACd,OAAO,MAAMO,mCAAyCT,GAAGE,EAAE,GAAE;AAC7D,cAAc,GACd,OAAO,MAAMQ,wBAA8BV,GAAGE,EAAE,GAAE;AAClD,cAAc,GACd,OAAO,MAAMS,uCAA6CX,GAAGE,EAAE,GAAE;AACjE,cAAc,GACd,OAAO,MAAMU,eAAqBZ,GAAGE,EAAE,GAAE;AACzC,cAAc,GACd,OAAO,MAAMW,uBAA6Bb,GAAGE,EAAE,GAAE;AACjD,cAAc,GACd,OAAO,MAAMY,iCAAuCd,GAAGE,EAAE,GAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli-test",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.1.0",
|
|
4
4
|
"description": "Sanity CLI test helpers and utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
"source": "./src/index.ts",
|
|
34
34
|
"default": "./dist/index.js"
|
|
35
35
|
},
|
|
36
|
+
"./mocks/cli-build/extract": {
|
|
37
|
+
"source": "./src/mocks/cli-build/extract.ts",
|
|
38
|
+
"default": "./dist/mocks/cli-build/extract.js"
|
|
39
|
+
},
|
|
36
40
|
"./mocks/cli-build/manifest": {
|
|
37
41
|
"source": "./src/mocks/cli-build/manifest.ts",
|
|
38
42
|
"default": "./dist/mocks/cli-build/manifest.js"
|
|
@@ -110,16 +114,16 @@
|
|
|
110
114
|
"@swc/core": "^1.15.43",
|
|
111
115
|
"ansis": "^4.2.0",
|
|
112
116
|
"esbuild": "^0.28.1",
|
|
113
|
-
"get-it": "^9.5.
|
|
117
|
+
"get-it": "^9.5.2",
|
|
114
118
|
"nock": "^14.0.15",
|
|
115
119
|
"tinyglobby": "^0.2.17",
|
|
116
|
-
"@sanity/cli-core": "3.5.
|
|
120
|
+
"@sanity/cli-core": "3.5.1"
|
|
117
121
|
},
|
|
118
122
|
"devDependencies": {
|
|
119
123
|
"@eslint/compat": "^2.1.0",
|
|
120
124
|
"@oclif/core": "^4.11.14",
|
|
121
|
-
"@sanity/client": "^8.
|
|
122
|
-
"@sanity/pkg-utils": "^12.
|
|
125
|
+
"@sanity/client": "^8.4.0",
|
|
126
|
+
"@sanity/pkg-utils": "^12.3.4",
|
|
123
127
|
"@swc/cli": "^0.8.1",
|
|
124
128
|
"@types/node": "^22.20.0",
|
|
125
129
|
"eslint": "^10.7.0",
|
|
@@ -135,9 +139,9 @@
|
|
|
135
139
|
},
|
|
136
140
|
"peerDependencies": {
|
|
137
141
|
"@oclif/core": "^4.0.0",
|
|
138
|
-
"@sanity/client": "^8.
|
|
142
|
+
"@sanity/client": "^8.4.0",
|
|
139
143
|
"vitest": ">=3.0.0 <5.0.0",
|
|
140
|
-
"@sanity/cli-core": "3.5.
|
|
144
|
+
"@sanity/cli-core": "3.5.1"
|
|
141
145
|
},
|
|
142
146
|
"engines": {
|
|
143
147
|
"node": ">=22.12"
|