Skip to content

Commit 30f5dd2

Browse files
committed
Realign cma-client-analysis snapshots to canonical single-quote output
The previous snapshot update captured a transient state where the generated `.d.ts` files briefly had double-quoted string literal types. After the full `generate -> format -> build` flow (which runs biome with --unsafe and normalizes quotes to single), the sources stably serialize with single quotes. Re-record the snapshots from this stable state so `npm run publish` no longer fails on the test step.
1 parent 2506df9 commit 30f5dd2

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

packages/cma-client-analysis/__tests__/__snapshots__/code-analysis.test.ts.snap

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ export type ItemType = {
1919
/**
2020
* The way the model collection should be presented to the editors
2121
*/
22-
collection_appeareance?: "compact" | "table";
22+
collection_appeareance?: 'compact' | 'table';
2323
/**
2424
* The way the model/block model collection should be presented to the editors
2525
*/
26-
collection_appearance: "compact" | "table";
26+
collection_appearance: 'compact' | 'table';
2727
/**
2828
* Whether the model is single-instance or not. This property only applies to models, not block models
2929
*/
@@ -55,11 +55,11 @@ export type ItemType = {
5555
/**
5656
* If an ordering field is set, this field specifies the sorting direction. This property does not apply to block models
5757
*/
58-
ordering_direction: null | "asc" | "desc";
58+
ordering_direction: null | 'asc' | 'desc';
5959
/**
6060
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field. This property does not apply to block models
6161
*/
62-
ordering_meta: null | "created_at" | "updated_at" | "first_published_at" | "published_at";
62+
ordering_meta: null | 'created_at' | 'updated_at' | 'first_published_at' | 'published_at';
6363
/**
6464
* If this model is single-instance, this tells whether the single-instance record has already been created or not. This property only applies to models, not block models
6565
*/
@@ -155,11 +155,11 @@ export type ItemType = {
155155
/**
156156
* The way the model collection should be presented to the editors
157157
*/
158-
collection_appeareance?: "compact" | "table";
158+
collection_appeareance?: 'compact' | 'table';
159159
/**
160160
* The way the model/block model collection should be presented to the editors
161161
*/
162-
collection_appearance: "compact" | "table";
162+
collection_appearance: 'compact' | 'table';
163163
/**
164164
* Whether the model is single-instance or not. This property only applies to models, not block models
165165
*/
@@ -191,11 +191,11 @@ export type ItemType = {
191191
/**
192192
* If an ordering field is set, this field specifies the sorting direction. This property does not apply to block models
193193
*/
194-
ordering_direction: null | "asc" | "desc";
194+
ordering_direction: null | 'asc' | 'desc';
195195
/**
196196
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field. This property does not apply to block models
197197
*/
198-
ordering_meta: null | "created_at" | "updated_at" | "first_published_at" | "published_at";
198+
ordering_meta: null | 'created_at' | 'updated_at' | 'first_published_at' | 'published_at';
199199
/**
200200
* If this model is single-instance, this tells whether the single-instance record has already been created or not. This property only applies to models, not block models
201201
*/
@@ -223,14 +223,14 @@ export type ItemType = {
223223
224224
export type ItemTypeIdentity = string;
225225
226-
export type ItemTypeType = "item_type";
226+
export type ItemTypeType = 'item_type';
227227
228228
export type ItemData = {
229229
type: ItemType1;
230230
id: ItemIdentity;
231231
};
232232
233-
export type ItemType1 = "item";
233+
export type ItemType1 = 'item';
234234
235235
export type ItemIdentity = string;
236236
@@ -239,7 +239,7 @@ export type FieldData = {
239239
id: FieldIdentity;
240240
};
241241
242-
export type FieldType = "field";
242+
export type FieldType = 'field';
243243
244244
export type FieldIdentity = string;
245245
@@ -248,7 +248,7 @@ export type FieldsetData = {
248248
id: FieldsetIdentity;
249249
};
250250
251-
export type FieldsetType = "fieldset";
251+
export type FieldsetType = 'fieldset';
252252
253253
export type FieldsetIdentity = string;
254254
@@ -257,7 +257,7 @@ export type WorkflowData = {
257257
id: WorkflowIdentity;
258258
};
259259
260-
export type WorkflowType = "workflow";
260+
export type WorkflowType = 'workflow';
261261
262262
export type WorkflowIdentity = string;
263263
@@ -314,11 +314,11 @@ export type ItemType = {
314314
/**
315315
* The way the model collection should be presented to the editors
316316
*/
317-
collection_appeareance?: "compact" | "table";
317+
collection_appeareance?: 'compact' | 'table';
318318
/**
319319
* The way the model/block model collection should be presented to the editors
320320
*/
321-
collection_appearance: "compact" | "table";
321+
collection_appearance: 'compact' | 'table';
322322
/**
323323
* Whether the model is single-instance or not. This property only applies to models, not block models
324324
*/
@@ -350,11 +350,11 @@ export type ItemType = {
350350
/**
351351
* If an ordering field is set, this field specifies the sorting direction. This property does not apply to block models
352352
*/
353-
ordering_direction: null | "asc" | "desc";
353+
ordering_direction: null | 'asc' | 'desc';
354354
/**
355355
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field. This property does not apply to block models
356356
*/
357-
ordering_meta: null | "created_at" | "updated_at" | "first_published_at" | "published_at";
357+
ordering_meta: null | 'created_at' | 'updated_at' | 'first_published_at' | 'published_at';
358358
/**
359359
* If this model is single-instance, this tells whether the single-instance record has already been created or not. This property only applies to models, not block models
360360
*/
@@ -417,11 +417,11 @@ export type ItemType = {
417417
/**
418418
* The way the model collection should be presented to the editors
419419
*/
420-
collection_appeareance?: "compact" | "table";
420+
collection_appeareance?: 'compact' | 'table';
421421
/**
422422
* The way the model/block model collection should be presented to the editors
423423
*/
424-
collection_appearance: "compact" | "table";
424+
collection_appearance: 'compact' | 'table';
425425
/**
426426
* Whether the model is single-instance or not. This property only applies to models, not block models
427427
*/
@@ -453,11 +453,11 @@ export type ItemType = {
453453
/**
454454
* If an ordering field is set, this field specifies the sorting direction. This property does not apply to block models
455455
*/
456-
ordering_direction: null | "asc" | "desc";
456+
ordering_direction: null | 'asc' | 'desc';
457457
/**
458458
* Specifies the model's sorting method. Cannot be set in concurrency with ordering_field. This property does not apply to block models
459459
*/
460-
ordering_meta: null | "created_at" | "updated_at" | "first_published_at" | "published_at";
460+
ordering_meta: null | 'created_at' | 'updated_at' | 'first_published_at' | 'published_at';
461461
/**
462462
* If this model is single-instance, this tells whether the single-instance record has already been created or not. This property only applies to models, not block models
463463
*/
@@ -544,7 +544,7 @@ exports[`TypeScript Compiler API - Unit Tests extractTypeDependencies items.find
544544
id: ItemIdentity;
545545
};
546546
547-
export type ItemType1 = "item";
547+
export type ItemType1 = 'item';
548548
549549
export type ItemIdentity = string;
550550
@@ -637,7 +637,7 @@ export type ItemMeta = {
637637
/**
638638
* Status
639639
*/
640-
status: null | ("draft" | "updated" | "published");
640+
status: null | ('draft' | 'updated' | 'published');
641641
/**
642642
* Whether the current record is valid or not
643643
*/
@@ -857,7 +857,7 @@ export type ItemInNestedResponse<D extends ItemTypeDefinition = ItemTypeDefiniti
857857
858858
export type ItemIdentity = string;
859859
860-
export type ItemType1 = "item";
860+
export type ItemType1 = 'item';
861861
862862
export type ItemTypeData<D extends ItemTypeDefinition = ItemTypeDefinition> = {
863863
type: ItemTypeType;
@@ -917,7 +917,7 @@ export type ItemMeta = {
917917
/**
918918
* Status
919919
*/
920-
status: null | ("draft" | "updated" | "published");
920+
status: null | ('draft' | 'updated' | 'published');
921921
/**
922922
* Whether the current record is valid or not
923923
*/
@@ -1144,7 +1144,7 @@ exports[`TypeScript Compiler API - Unit Tests extractTypeDependencies uploads.cr
11441144
11451145
export type UploadIdentity = string;
11461146
1147-
export type UploadType = "upload";
1147+
export type UploadType = 'upload';
11481148
11491149
export type UploadCollectionData = {
11501150
type: UploadCollectionType;
@@ -1225,7 +1225,7 @@ export type Upload = {
12251225
/**
12261226
* Maximum quality of MP4 rendition available
12271227
*/
1228-
mux_mp4_highest_res: null | "high" | "medium" | "low";
1228+
mux_mp4_highest_res: null | 'high' | 'medium' | 'low';
12291229
/**
12301230
* For each of the project's locales, the default metadata to apply if nothing is specified at record's level.
12311231
*/
@@ -1353,7 +1353,7 @@ export type UploadMeta = {
13531353
/**
13541354
* Antivirus scan status of the asset
13551355
*/
1356-
status: "pending" | "clean" | "infected" | "failed" | "skipped";
1356+
status: 'pending' | 'clean' | 'infected' | 'failed' | 'skipped';
13571357
/**
13581358
* Date of the last antivirus scan
13591359
*/

0 commit comments

Comments
 (0)