/
handle-flags.ts.snap
265 lines (242 loc) · 9.66 KB
/
handle-flags.ts.snap
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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`handle flags filters out flags marked false 1`] = `
Object {
"enabledConfigFlags": Array [
Object {
"command": "all",
"description": "test",
"env": "GATSBY_EXPERIMENTAL_SOMETHING_COOL",
"experimental": false,
"name": "ALL_COMMANDS",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
Object {
"command": "all",
"description": "test",
"env": "GATSBY_READY_TO_GO",
"experimental": false,
"name": "PARTIAL_RELEASE",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
Object {
"command": "all",
"description": "test",
"env": "GATSBY_READY_TO_GO_NEW_LODASH",
"experimental": false,
"name": "PARTIAL_RELEASE_ONLY_NEW_LODASH",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
],
"message": "The following flags are active:
- ALL_COMMANDS · (Umbrella Issue (test)) · test
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:
- PARTIAL_RELEASE · (Umbrella Issue (test)) · test
- PARTIAL_RELEASE_ONLY_NEW_LODASH · (Umbrella Issue (test)) · test
There are 2 other flags available that you might be interested in:
- FAST_DEV · Enable all experiments aimed at improving develop server start time
- YET_ANOTHER · (Umbrella Issue (test)) · test
",
"unfitFlagMessage": "",
"unknownFlagMessage": "",
}
`;
exports[`handle flags opts in sites to a flag if their site is selected for partial release 1`] = `
Object {
"enabledConfigFlags": Array [
Object {
"command": "all",
"description": "test",
"env": "GATSBY_READY_TO_GO",
"experimental": false,
"name": "PARTIAL_RELEASE",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
Object {
"command": "all",
"description": "test",
"env": "GATSBY_READY_TO_GO_NEW_LODASH",
"experimental": false,
"name": "PARTIAL_RELEASE_ONLY_NEW_LODASH",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
],
"message": "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:
- PARTIAL_RELEASE · (Umbrella Issue (test)) · test
- PARTIAL_RELEASE_ONLY_NEW_LODASH · (Umbrella Issue (test)) · test
There are 4 other flags available that you might be interested in:
- FAST_DEV · Enable all experiments aimed at improving develop server start time
- 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.
- ALL_COMMANDS · (Umbrella Issue (test)) · test
- YET_ANOTHER · (Umbrella Issue (test)) · test
",
"unfitFlagMessage": "",
"unknownFlagMessage": "",
}
`;
exports[`handle flags returns a message about unknown flags in the config 1`] = `
Object {
"enabledConfigFlags": Array [
Object {
"command": "all",
"description": "test",
"env": "GATSBY_EXPERIMENTAL_SOMETHING_COOL",
"experimental": false,
"name": "ALL_COMMANDS",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
Object {
"command": "all",
"description": "test",
"env": "GATSBY_READY_TO_GO",
"experimental": false,
"name": "PARTIAL_RELEASE",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
Object {
"command": "all",
"description": "test",
"env": "GATSBY_READY_TO_GO_NEW_LODASH",
"experimental": false,
"name": "PARTIAL_RELEASE_ONLY_NEW_LODASH",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
],
"message": "The following flags are active:
- ALL_COMMANDS · (Umbrella Issue (test)) · test
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:
- PARTIAL_RELEASE · (Umbrella Issue (test)) · test
- PARTIAL_RELEASE_ONLY_NEW_LODASH · (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
- 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.
- YET_ANOTHER · (Umbrella Issue (test)) · test
",
"unfitFlagMessage": "",
"unknownFlagMessage": "The following flag(s) found in your gatsby-config.js are not known:
- FASTLY_DEV (did you mean: FAST_DEV)
- SUPER_COOL_FLAG",
}
`;
exports[`handle flags returns enabledConfigFlags and a message 1`] = `
Object {
"enabledConfigFlags": Array [
Object {
"command": "develop",
"description": "Enable all experiments aimed at improving develop server start time",
"env": "GATSBY_EXPERIMENTAL_FAST_DEV",
"experimental": false,
"includedFlags": Array [
"DEV_SSR",
"QUERY_ON_DEMAND",
],
"name": "FAST_DEV",
"telemetryId": "test",
"testFitness": [Function],
},
Object {
"command": "all",
"description": "test",
"env": "GATSBY_EXPERIMENTAL_SOMETHING_COOL",
"experimental": false,
"name": "ALL_COMMANDS",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
Object {
"command": "all",
"description": "test",
"env": "GATSBY_READY_TO_GO",
"experimental": false,
"name": "PARTIAL_RELEASE",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
Object {
"command": "all",
"description": "test",
"env": "GATSBY_READY_TO_GO_NEW_LODASH",
"experimental": false,
"name": "PARTIAL_RELEASE_ONLY_NEW_LODASH",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "test",
},
Object {
"command": "develop",
"description": "SSR pages on full reloads during develop. Helps you detect SSR bugs and fix them without needing to do full builds.",
"env": "GATSBY_EXPERIMENTAL_DEV_SSR",
"experimental": false,
"name": "DEV_SSR",
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "https://github.com/gatsbyjs/gatsby/discussions/28138",
},
Object {
"command": "develop",
"description": "Only run queries when needed instead of running all queries upfront. Speeds starting the develop server.",
"env": "GATSBY_EXPERIMENTAL_QUERY_ON_DEMAND",
"experimental": false,
"name": "QUERY_ON_DEMAND",
"noCI": true,
"telemetryId": "test",
"testFitness": [Function],
"umbrellaIssue": "https://github.com/gatsbyjs/gatsby/discussions/27620",
},
],
"message": "The following flags are active:
- FAST_DEV · Enable all experiments aimed at improving develop server start time
- ALL_COMMANDS · (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.
- QUERY_ON_DEMAND · (Umbrella Issue (https://github.com/gatsbyjs/gatsby/discussions/27620)) · Only run queries when needed instead of running all queries upfront. Speeds starting the develop server.
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:
- PARTIAL_RELEASE · (Umbrella Issue (test)) · test
- PARTIAL_RELEASE_ONLY_NEW_LODASH · (Umbrella Issue (test)) · test
There is one other flag available that you might be interested in:
- YET_ANOTHER · (Umbrella Issue (test)) · test
",
"unfitFlagMessage": "",
"unknownFlagMessage": "",
}
`;