@sanity/cli-test 9.0.0 → 9.0.2

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.
@@ -22,6 +22,7 @@ import { vi } from 'vitest';
22
22
  throw new Error('Function not implemented.');
23
23
  },
24
24
  interval: 0,
25
+ isEnabled: true,
25
26
  isSpinning: false,
26
27
  prefixText: '',
27
28
  render: function() {
@@ -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,IAAIV,MAAM;YAClB;YACAW,SAAS;gBACPC,QAAQ,EAAE;gBACVL,UAAUM;YACZ;YACAC,OAAO,SAAUX,KAAc;gBAC7B,MAAM,IAAIH,MAAM;YAClB;YACAe,MAAM;gBACJ,MAAM,IAAIf,MAAM;YAClB;YACAgB,gBAAgB,SAAUC,QAAc;gBACtC,MAAM,IAAIjB,MAAM;YAClB;YACAkB,SAAS,SAAUf,KAAc;gBAC/B,MAAM,IAAIH,MAAM;YAClB;YACAmB,YAAY;YACZC,MAAM;YACNC,MAAM,SAAUlB,KAAc;gBAC5B,MAAM,IAAIH,MAAM;YAClB;YACA,GAAGH,SAAS;QACd;IACF;AACF"}
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"}
@@ -7,7 +7,7 @@
7
7
  "build": "next build"
8
8
  },
9
9
  "dependencies": {
10
- "next": "^16.2.6",
10
+ "next": "16.2.11",
11
11
  "react": "^19.2.5",
12
12
  "react-dom": "^19.2.5"
13
13
  },
@@ -28,6 +28,6 @@
28
28
  "@sanity/color": "^3.0.6",
29
29
  "@types/react": "^19.2.14",
30
30
  "typescript": "^6.0.3",
31
- "vite": "^8.1.5"
31
+ "vite": "^8.2.0"
32
32
  }
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli-test",
3
- "version": "9.0.0",
3
+ "version": "9.0.2",
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.8.0"
111
+ "@sanity/cli-core": "2.8.1"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@eslint/compat": "^2.1.0",
@@ -125,14 +125,14 @@
125
125
  "vitest": "^4.1.10",
126
126
  "yaml": "^2.9.0",
127
127
  "@repo/package.config": "0.0.1",
128
- "@repo/tsconfig": "3.70.0",
129
- "@sanity/eslint-config-cli": "1.1.3"
128
+ "@sanity/eslint-config-cli": "1.1.3",
129
+ "@repo/tsconfig": "3.70.0"
130
130
  },
131
131
  "peerDependencies": {
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.8.0"
135
+ "@sanity/cli-core": "2.8.1"
136
136
  },
137
137
  "engines": {
138
138
  "node": ">=22.12"