/
handle-flags.ts
743 lines (698 loc) · 22.9 KB
/
handle-flags.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
import _ from "lodash"
import sampleSiteForExperiment from "../sample-site-for-experiment"
import handleFlags from "../handle-flags"
import { IFlag, satisfiesSemvers, fitnessEnum } from "../flags"
jest.mock(`gatsby-core-utils`, () => {
return {
isCI: (): boolean => true,
}
})
describe(`satisfies semver`, () => {
it(`returns false if a module doesn't exist`, () => {
const semverConstraints = {
// Because of this, this flag will never show up
"gatsby-plugin-sharpy": `>=2.10.0`,
}
expect(satisfiesSemvers(semverConstraints)).toBeFalsy()
})
})
describe(`handle flags`, () => {
const activeFlags: Array<IFlag> = [
{
name: `FAST_DEV`,
env: `GATSBY_EXPERIMENTAL_FAST_DEV`,
command: `develop`,
telemetryId: `test`,
experimental: false,
description: `Enable all experiments aimed at improving develop server start time`,
includedFlags: [`DEV_SSR`, `QUERY_ON_DEMAND`],
testFitness: (): fitnessEnum => true,
},
{
name: `DEV_SSR`,
env: `GATSBY_EXPERIMENTAL_DEV_SSR`,
command: `develop`,
telemetryId: `test`,
experimental: false,
description: `SSR pages on full reloads during develop. Helps you detect SSR bugs and fix them without needing to do full builds.`,
umbrellaIssue: `https://github.com/gatsbyjs/gatsby/discussions/28138`,
testFitness: (): fitnessEnum => true,
},
{
name: `QUERY_ON_DEMAND`,
env: `GATSBY_EXPERIMENTAL_QUERY_ON_DEMAND`,
command: `develop`,
telemetryId: `test`,
experimental: false,
description: `Only run queries when needed instead of running all queries upfront. Speeds starting the develop server.`,
umbrellaIssue: `https://github.com/gatsbyjs/gatsby/discussions/27620`,
noCI: true,
testFitness: (): fitnessEnum => true,
},
{
name: `ONLY_BUILDS`,
env: `GATSBY_EXPERIMENTAL_BUILD_ME_FASTER`,
command: `build`,
telemetryId: `test`,
experimental: false,
description: `test`,
umbrellaIssue: `test`,
testFitness: (): fitnessEnum => true,
},
{
name: `ALL_COMMANDS`,
env: `GATSBY_EXPERIMENTAL_SOMETHING_COOL`,
command: `all`,
telemetryId: `test`,
experimental: false,
description: `test`,
umbrellaIssue: `test`,
testFitness: (): fitnessEnum => true,
},
{
name: `YET_ANOTHER`,
env: `GATSBY_EXPERIMENTAL_SOMETHING_COOL2`,
command: `all`,
telemetryId: `test`,
experimental: false,
description: `test`,
umbrellaIssue: `test`,
testFitness: (): fitnessEnum => true,
},
{
name: `PARTIAL_RELEASE`,
env: `GATSBY_READY_TO_GO`,
command: `all`,
telemetryId: `test`,
experimental: false,
description: `test`,
umbrellaIssue: `test`,
testFitness: (flag): fitnessEnum => {
if (sampleSiteForExperiment(flag.name, 100)) {
return `OPT_IN`
} else {
return false
}
},
},
{
name: `PARTIAL_RELEASE_ONLY_VERY_OLD_LODASH`,
env: `GATSBY_READY_TO_GO_LODASH`,
command: `all`,
telemetryId: `test`,
experimental: false,
description: `test`,
umbrellaIssue: `test`,
testFitness: (flag): fitnessEnum => {
const semver = {
// Because of this, this flag will never show up
lodash: `<=3.9`,
}
if (
satisfiesSemvers(semver) &&
sampleSiteForExperiment(flag.name, 100)
) {
return `OPT_IN`
} else {
return false
}
},
},
{
name: `PARTIAL_RELEASE_ONLY_NEW_LODASH`,
env: `GATSBY_READY_TO_GO_NEW_LODASH`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (flag): fitnessEnum => {
const semver = {
// Because of this, this flag will never show up
lodash: `>=4.9`,
}
if (
satisfiesSemvers(semver) &&
sampleSiteForExperiment(flag.name, 100)
) {
return `OPT_IN`
} else {
return false
}
},
},
{
name: `LMDB_NODE14_ONLY`,
env: `GATSBY_LMDB`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => false,
requires: `Requires Node 14.10+`,
},
]
const configFlags = {
FAST_DEV: true,
ALL_COMMANDS: true,
}
const configFlagsWithFalse = {
ALL_COMMANDS: true,
DEV_SSR: false,
}
const configWithFlagsNoCi = {
QUERY_ON_DEMAND: true,
DEV_SSR: true,
}
it(`returns enabledConfigFlags and a message`, () => {
expect(handleFlags(activeFlags, configFlags, `develop`)).toMatchSnapshot()
})
it(`filters out flags marked false`, () => {
const result = handleFlags(activeFlags, configFlagsWithFalse, `develop`)
expect(result.enabledConfigFlags).toHaveLength(3)
expect(result).toMatchSnapshot()
})
it(`filters out flags that are marked as not available on CI`, () => {
expect(
handleFlags(activeFlags, configWithFlagsNoCi, `develop`)
.enabledConfigFlags
).toHaveLength(3)
})
it(`filters out flags that aren't for the current command`, () => {
expect(
handleFlags(activeFlags, configFlags, `build`).enabledConfigFlags
).toHaveLength(3)
})
it(`returns a message about unknown flags in the config`, () => {
const unknownConfigFlags = handleFlags(
activeFlags,
{ ALL_COMMANDS: true, FASTLY_DEV: true, SUPER_COOL_FLAG: true },
`develop`
)
expect(unknownConfigFlags).toMatchSnapshot()
})
it(`returns a message about unfit flags in the config`, () => {
const unfitConfigFlags = handleFlags(
activeFlags,
{ LMDB_NODE14_ONLY: true },
`develop`
)
expect(unfitConfigFlags.enabledConfigFlags).not.toContain(
expect.objectContaining({
name: `LMDB_NODE14_ONLY`,
})
)
expect(unfitConfigFlags.unfitFlagMessage).toMatchInlineSnapshot(`
"The following flag(s) found in your gatsby-config.js are not supported in your environment and will have no effect:
- LMDB_NODE14_ONLY: Requires Node 14.10+"
`)
expect(unfitConfigFlags.unknownFlagMessage).toEqual(``)
})
it(`opts in sites to a flag if their site is selected for partial release`, () => {
// Nothing is enabled in their config.
const response = handleFlags(activeFlags, {}, `develop`)
expect(response).toMatchSnapshot()
})
it(`removes flags people explicitly opt out of and ignores flags that don't pass semver`, () => {
const response = handleFlags(
activeFlags,
{
PARTIAL_RELEASE: false,
PARTIAL_RELEASE_ONLY_NEW_LODASH: false,
},
`develop`
)
expect(response.enabledConfigFlags).toHaveLength(0)
})
it(`doesn't count unfit flags as unknown`, () => {
const response = handleFlags(
activeFlags,
{
PARTIAL_RELEASE_ONLY_VERY_OLD_LODASH: true,
PARTIAL_RELEASE: false,
PARTIAL_RELEASE_ONLY_NEW_LODASH: false,
},
`develop`
)
// it currently just silently disables it
expect(response).toMatchInlineSnapshot(`
Object {
"enabledConfigFlags": Array [],
"message": "",
"unfitFlagMessage": "The following flag(s) found in your gatsby-config.js are not supported in your environment and will have no effect:
- PARTIAL_RELEASE_ONLY_VERY_OLD_LODASH",
"unknownFlagMessage": "",
}
`)
})
it(`Prefers explicit opt-in over auto opt-in (for terminal message)`, () => {
const response = handleFlags(
activeFlags.concat([
{
name: `ALWAYS_OPT_IN`,
env: `GATSBY_ALWAYS_OPT_IN`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
// this will always OPT IN
testFitness: (): fitnessEnum => `OPT_IN`,
},
]),
{
ALWAYS_OPT_IN: true,
DEV_SSR: true,
PARTIAL_RELEASE: false,
PARTIAL_RELEASE_ONLY_NEW_LODASH: false,
},
`develop`
)
expect(response.message).not.toContain(`automatically enabled`)
expect(response.message).toMatchInlineSnapshot(`
"The following flags are active:
- ALWAYS_OPT_IN · (Umbrella Issue (test)) · test
- DEV_SSR · (Umbrella Issue (https://github.com/gatsbyjs/gatsby/discussions/28138)) · SSR pages on full reloads during develop. Helps you detect SSR bugs and fix them without needing to do full builds.
There are 3 other flags available that you might be interested in:
- FAST_DEV · Enable all experiments aimed at improving develop server start time
- ALL_COMMANDS · (Umbrella Issue (test)) · test
- YET_ANOTHER · (Umbrella Issue (test)) · test
"
`)
})
describe(`LOCKED_IN`, () => {
it(`Enables locked in flag by default and doesn't mention it in terminal (no spam)`, () => {
const response = handleFlags(
[
{
name: `ALWAYS_LOCKED_IN`,
env: `GATSBY_ALWAYS_LOCKED_IN`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
// this will always LOCKED IN
testFitness: (): fitnessEnum => `LOCKED_IN`,
},
],
{},
`develop`
)
expect(response.enabledConfigFlags).toContainEqual(
expect.objectContaining({ name: `ALWAYS_LOCKED_IN` })
)
expect(response.message).toEqual(``)
})
it(`Display message saying config flag for LOCKED_IN feature is no-op`, () => {
const response = handleFlags(
[
{
name: `ALWAYS_LOCKED_IN_SET_IN_CONFIG`,
env: `GATSBY_ALWAYS_LOCKED_IN_SET_IN_CONFIG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
// this will always LOCKED IN
testFitness: (): fitnessEnum => `LOCKED_IN`,
},
],
{
// this has no effect, but we want to show to user that
ALWAYS_LOCKED_IN_SET_IN_CONFIG: true,
},
`develop`
)
expect(response.enabledConfigFlags).toContainEqual(
expect.objectContaining({ name: `ALWAYS_LOCKED_IN_SET_IN_CONFIG` })
)
expect(response.message).toMatchInlineSnapshot(`
"Some features you configured with flags are used natively now.
Those flags no longer have any effect and you can remove them from config:
- ALWAYS_LOCKED_IN_SET_IN_CONFIG · (Umbrella Issue (test)) · test
"
`)
})
it(`Display message when LOCKED_IN applies to command different than currently executed`, () => {
const response = handleFlags(
[
{
name: `ALWAYS_LOCKED_IN_SET_IN_CONFIG_FOR_DEVELOP`,
env: `GATSBY_ALWAYS_LOCKED_IN_SET_IN_CONFIG_FOR_DEVELOP`,
command: `develop`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
// this will always LOCKED IN
testFitness: (): fitnessEnum => `LOCKED_IN`,
},
{
name: `SOME_FLAG`,
env: `GATSBY_SOME_FLAG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
],
{
// this has no effect, but we want to show to user that
SOME_FLAG: true,
},
`build`
)
expect(response).toMatchInlineSnapshot(`
Object {
"enabledConfigFlags": Array [
Object {
"command": "all",
"description": "test",
"env": "GATSBY_SOME_FLAG",
"experimental": false,
"name": "SOME_FLAG",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
],
"message": "The following flags are active:
- SOME_FLAG · (Umbrella Issue (test)) · test
",
"unfitFlagMessage": "",
"unknownFlagMessage": "",
}
`)
})
it(`Kitchen sink`, () => {
const response = handleFlags(
activeFlags.concat([
{
name: `ALWAYS_LOCKED_IN`,
env: `GATSBY_ALWAYS_LOCKED_IN`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
// this will always LOCKED IN
testFitness: (): fitnessEnum => `LOCKED_IN`,
},
{
name: `ALWAYS_LOCKED_IN_SET_IN_CONFIG`,
env: `GATSBY_ALWAYS_LOCKED_IN_SET_IN_CONFIG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
// this will always LOCKED IN
testFitness: (): fitnessEnum => `LOCKED_IN`,
},
]),
{
ALWAYS_OPT_IN: true,
DEV_SSR: true,
PARTIAL_RELEASE: false,
PARTIAL_RELEASE_ONLY_NEW_LODASH: false,
// this has no effect, but we want to show to user that
ALWAYS_LOCKED_IN_SET_IN_CONFIG: true,
},
`develop`
)
// this is enabled, but because it's not configurable anymore and user doesn't set it explicitly in config - there is no point in printing information about it
expect(response.enabledConfigFlags).toContainEqual(
expect.objectContaining({ name: `ALWAYS_LOCKED_IN` })
)
// this is enabled, but because it's not configurable anymore and user sets it in config - we want to mention that this config flag has no effect anymore
expect(response.enabledConfigFlags).toContainEqual(
expect.objectContaining({ name: `ALWAYS_LOCKED_IN_SET_IN_CONFIG` })
)
expect(response.message).toMatchInlineSnapshot(`
"The following flags are active:
- DEV_SSR · (Umbrella Issue (https://github.com/gatsbyjs/gatsby/discussions/28138)) · SSR pages on full reloads during develop. Helps you detect SSR bugs and fix them without needing to do full builds.
Some features you configured with flags are used natively now.
Those flags no longer have any effect and you can remove them from config:
- ALWAYS_LOCKED_IN_SET_IN_CONFIG · (Umbrella Issue (test)) · test
There are 3 other flags available that you might be interested in:
- FAST_DEV · Enable all experiments aimed at improving develop server start time
- ALL_COMMANDS · (Umbrella Issue (test)) · test
- YET_ANOTHER · (Umbrella Issue (test)) · test
"
`)
})
})
describe(`includeFlags`, () => {
it(`enabling umbrella flag implies enabling individual flags`, () => {
const response = handleFlags(
[
{
name: `UMBRELLA`,
env: `GATSBY_UMBRELLA`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
includedFlags: [`SUB_FLAG_A`, `SUB_FLAG_B`],
},
{
name: `SUB_FLAG_A`,
env: `GATSBY_SUB_FLAG_A`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
{
name: `SUB_FLAG_B`,
env: `GATSBY_SUB_FLAG_B`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
],
{
UMBRELLA: true,
},
`build`
)
expect(response.enabledConfigFlags).toContainEqual(
expect.objectContaining({ name: `SUB_FLAG_A` })
)
expect(response.enabledConfigFlags).toContainEqual(
expect.objectContaining({ name: `SUB_FLAG_B` })
)
expect(response.message).toMatchInlineSnapshot(`
"The following flags are active:
- UMBRELLA · (Umbrella Issue (test)) · test
- SUB_FLAG_A · (Umbrella Issue (test)) · test
- SUB_FLAG_B · (Umbrella Issue (test)) · test
"
`)
})
it(`allow disabling individual flags that umbrella flag would enable`, () => {
const response = handleFlags(
[
{
name: `UMBRELLA`,
env: `GATSBY_UMBRELLA`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
includedFlags: [`SUB_FLAG_A`, `SUB_FLAG_B`],
},
{
name: `SUB_FLAG_A`,
env: `GATSBY_SUB_FLAG_A`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
{
name: `SUB_FLAG_B`,
env: `GATSBY_SUB_FLAG_B`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
],
{
UMBRELLA: true,
SUB_FLAG_B: false,
},
`build`
)
expect(response.enabledConfigFlags).toContainEqual(
expect.objectContaining({ name: `SUB_FLAG_A` })
)
expect(response.enabledConfigFlags).not.toContainEqual(
expect.objectContaining({ name: `SUB_FLAG_B` })
)
expect(response.message).toMatchInlineSnapshot(`
"The following flags are active:
- UMBRELLA · (Umbrella Issue (test)) · test
- SUB_FLAG_A · (Umbrella Issue (test)) · test
"
`)
})
})
describe(`other flag suggestions`, () => {
it(`suggest other flags when there is flag explicitly enabled`, () => {
const response = handleFlags(
[
{
name: `ENABLED_FLAG`,
env: `GATSBY_ENABLED_FLAG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
{
name: `OTHER_FLAG`,
env: `GATSBY_OTHER_FLAG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
],
{
ENABLED_FLAG: true,
},
`build`
)
expect(response.message).toMatchInlineSnapshot(`
"The following flags are active:
- ENABLED_FLAG · (Umbrella Issue (test)) · test
There is one other flag available that you might be interested in:
- OTHER_FLAG · (Umbrella Issue (test)) · test
"
`)
})
it(`suggest other flags when there is opted-in flag`, () => {
const response = handleFlags(
[
{
name: `OPTED_IN_FLAG`,
env: `GATSBY_OPTED_IN_FLAG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => `OPT_IN`,
},
{
name: `OTHER_FLAG`,
env: `GATSBY_OTHER_FLAG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
],
{},
`build`
)
expect(response.message).toMatchInlineSnapshot(`
"We're shipping new features! For final testing, we're rolling them out first to a small % of Gatsby users
and your site was automatically chosen as one of them. With your help, we'll then release them to everyone in the next minor release.
We greatly appreciate your help testing the change. Please report any feedback good or bad in the umbrella issue. If you do encounter problems, please disable the flag by setting it to false in your gatsby-config.js like:
flags: {
THE_FLAG: false
}
The following flags were automatically enabled on your site:
- OPTED_IN_FLAG · (Umbrella Issue (test)) · test
There is one other flag available that you might be interested in:
- OTHER_FLAG · (Umbrella Issue (test)) · test
"
`)
})
it(`doesn't suggest other flags if there are no enabled or opted in flags (no locked-in flags)`, () => {
const response = handleFlags(
[
{
name: `SOME_FLAG`,
env: `GATSBY_SOME_FLAG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
{
name: `OTHER_FLAG`,
env: `GATSBY_OTHER_FLAG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
],
{},
`build`
)
expect(response.message).toMatchInlineSnapshot(`""`)
})
it(`doesn't suggest other flags if there are no enabled or opted in flags (with locked-in flag)`, () => {
const response = handleFlags(
[
{
name: `LOCKED_IN_FLAG`,
env: `GATSBY_LOCKED_IN_FLAG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => `LOCKED_IN`,
},
{
name: `OTHER_FLAG`,
env: `GATSBY_OTHER_FLAG`,
command: `all`,
description: `test`,
umbrellaIssue: `test`,
telemetryId: `test`,
experimental: false,
testFitness: (): fitnessEnum => true,
},
],
{},
`build`
)
expect(response.message).toMatchInlineSnapshot(`""`)
})
})
})