@sanity/cli-test 8.0.1 → 9.0.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/test/createMockSpinner.ts"],"sourcesContent":["import {type SpinnerInstance} from '@sanity/cli-core/ux'\nimport {Mock, vi} from 'vitest'\n\n/**\n * Creates a mock spinner function to avoid writing output to stdout.\n * @param overrides - Pass any mocks or stubs for test expectations\n * @internal\n * @deprecated Use mocks/cli-core/ux/spinner instead\n */\nexport function createMockSpinner(\n overrides?: Partial<SpinnerInstance>,\n): Mock<(options: string) => SpinnerInstance> {\n return vi.fn(() => {\n return {\n clear: function (): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n color: false,\n fail: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n frame: function (): string {\n throw new Error('Function not implemented.')\n },\n indent: 0,\n info: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n interval: 0,\n isSpinning: false,\n prefixText: '',\n render: function (): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n spinner: {\n frames: [],\n interval: undefined,\n },\n start: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n stop: function (): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n stopAndPersist: function (_options?: any): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n succeed: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n suffixText: '',\n text: '',\n warn: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n ...overrides,\n }\n })\n}\n"],"names":["vi","createMockSpinner","overrides","fn","clear","Error","color","fail","_text","frame","indent","info","interval","isSpinning","prefixText","render","spinner","frames","undefined","start","stop","stopAndPersist","_options","succeed","suffixText","text","warn"],"mappings":"AACA,SAAcA,EAAE,QAAO,SAAQ;AAE/B;;;;;CAKC,GACD,OAAO,SAASC,kBACdC,SAAoC;IAEpC,OAAOF,GAAGG,EAAE,CAAC;QACX,OAAO;YACLC,OAAO;gBACL,MAAM,IAAIC,MAAM;YAClB;YACAC,OAAO;YACPC,MAAM,SAAUC,KAAc;gBAC5B,MAAM,IAAIH,MAAM;YAClB;YACAI,OAAO;gBACL,MAAM,IAAIJ,MAAM;YAClB;YACAK,QAAQ;YACRC,MAAM,SAAUH,KAAc;gBAC5B,MAAM,IAAIH,MAAM;YAClB;YACAO,UAAU;YACVC,YAAY;YACZC,YAAY;YACZC,QAAQ;gBACN,MAAM,
|
|
1
|
+
{"version":3,"sources":["../../src/test/createMockSpinner.ts"],"sourcesContent":["import {type SpinnerInstance} from '@sanity/cli-core/ux'\nimport {Mock, vi} from 'vitest'\n\n/**\n * Creates a mock spinner function to avoid writing output to stdout.\n * @param overrides - Pass any mocks or stubs for test expectations\n * @internal\n * @deprecated Use mocks/cli-core/ux/spinner instead\n */\nexport function createMockSpinner(\n overrides?: Partial<SpinnerInstance>,\n): Mock<(options: string) => SpinnerInstance> {\n return vi.fn(() => {\n return {\n clear: function (): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n color: false,\n fail: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n frame: function (): string {\n throw new Error('Function not implemented.')\n },\n indent: 0,\n info: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n interval: 0,\n isEnabled: true,\n isSpinning: false,\n prefixText: '',\n render: function (): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n spinner: {\n frames: [],\n interval: undefined,\n },\n start: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n stop: function (): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n stopAndPersist: function (_options?: any): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n succeed: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n suffixText: '',\n text: '',\n warn: function (_text?: string): SpinnerInstance {\n throw new Error('Function not implemented.')\n },\n ...overrides,\n } as SpinnerInstance\n })\n}\n"],"names":["vi","createMockSpinner","overrides","fn","clear","Error","color","fail","_text","frame","indent","info","interval","isEnabled","isSpinning","prefixText","render","spinner","frames","undefined","start","stop","stopAndPersist","_options","succeed","suffixText","text","warn"],"mappings":"AACA,SAAcA,EAAE,QAAO,SAAQ;AAE/B;;;;;CAKC,GACD,OAAO,SAASC,kBACdC,SAAoC;IAEpC,OAAOF,GAAGG,EAAE,CAAC;QACX,OAAO;YACLC,OAAO;gBACL,MAAM,IAAIC,MAAM;YAClB;YACAC,OAAO;YACPC,MAAM,SAAUC,KAAc;gBAC5B,MAAM,IAAIH,MAAM;YAClB;YACAI,OAAO;gBACL,MAAM,IAAIJ,MAAM;YAClB;YACAK,QAAQ;YACRC,MAAM,SAAUH,KAAc;gBAC5B,MAAM,IAAIH,MAAM;YAClB;YACAO,UAAU;YACVC,WAAW;YACXC,YAAY;YACZC,YAAY;YACZC,QAAQ;gBACN,MAAM,IAAIX,MAAM;YAClB;YACAY,SAAS;gBACPC,QAAQ,EAAE;gBACVN,UAAUO;YACZ;YACAC,OAAO,SAAUZ,KAAc;gBAC7B,MAAM,IAAIH,MAAM;YAClB;YACAgB,MAAM;gBACJ,MAAM,IAAIhB,MAAM;YAClB;YACAiB,gBAAgB,SAAUC,QAAc;gBACtC,MAAM,IAAIlB,MAAM;YAClB;YACAmB,SAAS,SAAUhB,KAAc;gBAC/B,MAAM,IAAIH,MAAM;YAClB;YACAoB,YAAY;YACZC,MAAM;YACNC,MAAM,SAAUnB,KAAc;gBAC5B,MAAM,IAAIH,MAAM;YAClB;YACA,GAAGH,SAAS;QACd;IACF;AACF"}
|
|
@@ -8,7 +8,6 @@ export default defineCliConfig({
|
|
|
8
8
|
// Calling `unstable_defineApp` opts this studio into workbench (a
|
|
9
9
|
// `sanity.config.ts` is present, so it resolves to `applicationType: 'studio'`).
|
|
10
10
|
app: unstable_defineApp({
|
|
11
|
-
name: 'federated-studio',
|
|
12
11
|
organizationId: 'oSyH1iET5',
|
|
13
12
|
slug: 'federated-studio',
|
|
14
13
|
title: 'Federated Studio',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli-test",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "Sanity CLI test helpers and utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"esbuild": "^0.28.1",
|
|
109
109
|
"nock": "^14.0.15",
|
|
110
110
|
"tinyglobby": "^0.2.17",
|
|
111
|
-
"@sanity/cli-core": "2.
|
|
111
|
+
"@sanity/cli-core": "2.8.0"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@eslint/compat": "^2.1.0",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"@oclif/core": "^4.0.0",
|
|
133
133
|
"@sanity/client": "^7.0.0",
|
|
134
134
|
"vitest": ">=3.0.0 <5.0.0",
|
|
135
|
-
"@sanity/cli-core": "2.
|
|
135
|
+
"@sanity/cli-core": "2.8.0"
|
|
136
136
|
},
|
|
137
137
|
"engines": {
|
|
138
138
|
"node": ">=22.12"
|