@@ -15,25 +15,24 @@ function createTests(options) {
15
15
[
16
16
DebugToolsPlugin ,
17
17
{
18
- envFlags : {
19
- source : '@ember/env-flags' ,
20
- flags : {
21
- DEBUG : false ,
18
+ flags : [
19
+ {
20
+ source : '@ember/env-flags' ,
21
+ flags : {
22
+ DEBUG : false ,
23
+ } ,
22
24
} ,
23
- } ,
24
- debugTools : {
25
- source : '@ember/debug-tools' ,
26
- } ,
27
- features : [
28
25
{
29
- name : 'ember-source' ,
30
26
source : '@ember/features' ,
31
27
flags : {
32
28
FEATURE_A : false ,
33
29
FEATURE_B : true ,
34
30
} ,
35
31
} ,
36
32
] ,
33
+ debugTools : {
34
+ source : '@ember/debug-tools' ,
35
+ } ,
37
36
} ,
38
37
] ,
39
38
] ,
@@ -57,12 +56,7 @@ function createTests(options) {
57
56
source : '@ember/debug-tools' ,
58
57
assertPredicateIndex : 0 ,
59
58
} ,
60
- envFlags : {
61
- source : '@ember/env-flags' ,
62
- flags : {
63
- DEBUG : true ,
64
- } ,
65
- } ,
59
+ flags : [ { source : '@ember/env-flags' , flags : { DEBUG : true } } ] ,
66
60
} ,
67
61
] ,
68
62
] ,
@@ -93,12 +87,7 @@ function createTests(options) {
93
87
source : '@ember/debug-tools' ,
94
88
assertPredicateIndex : 0 ,
95
89
} ,
96
- envFlags : {
97
- source : '@ember/env-flags' ,
98
- flags : {
99
- DEBUG : true ,
100
- } ,
101
- } ,
90
+ flags : [ { source : '@ember/env-flags' , flags : { DEBUG : true } } ] ,
102
91
} ,
103
92
] ,
104
93
@@ -155,12 +144,7 @@ function createTests(options) {
155
144
debugTools : {
156
145
source : '@ember/debug-tools' ,
157
146
} ,
158
- envFlags : {
159
- source : '@ember/env-flags' ,
160
- flags : {
161
- DEBUG : true ,
162
- } ,
163
- } ,
147
+ flags : [ { source : '@ember/env-flags' , flags : { DEBUG : true } } ] ,
164
148
} ,
165
149
] ,
166
150
] ,
@@ -169,7 +153,7 @@ function createTests(options) {
169
153
h . generateTest ( 'global-external-helpers' ) ;
170
154
} ) ;
171
155
172
- describe ( 'ember-cli-babel default configuration' , function ( ) {
156
+ describe ( 'ember-cli-babel default configuration (legacy config API) ' , function ( ) {
173
157
let h = transformTestHelper ( {
174
158
presets,
175
159
plugins : [
@@ -197,82 +181,52 @@ function createTests(options) {
197
181
h . generateTest ( 'ember-cli-babel-config' ) ;
198
182
} ) ;
199
183
200
- describe ( 'Retain Module External Test Helpers ' , function ( ) {
184
+ describe ( 'ember-cli-babel default configuration ' , function ( ) {
201
185
let h = transformTestHelper ( {
202
186
presets,
203
187
plugins : [
204
188
[
205
189
DebugToolsPlugin ,
206
190
{
207
191
externalizeHelpers : {
208
- module : true ,
192
+ global : 'Ember' ,
209
193
} ,
210
194
debugTools : {
211
- source : '@ember/debug-tools' ,
212
- } ,
213
- envFlags : {
214
- source : '@ember/env-flags' ,
215
- flags : {
216
- DEBUG : true ,
217
- } ,
195
+ source : '@ember/debug' ,
196
+ assertPredicateIndex : 1 ,
218
197
} ,
198
+ flags : [ { source : '@glimmer/env' , flags : { DEBUG : true } } ] ,
219
199
} ,
220
200
] ,
221
201
] ,
222
202
} ) ;
223
203
224
- h . generateTest ( 'retain-module-external-helpers ' ) ;
204
+ h . generateTest ( 'ember-cli-babel-config ' ) ;
225
205
} ) ;
226
206
227
- describe ( 'Development Svelte Builds ' , function ( ) {
207
+ describe ( 'Retain Module External Test Helpers ' , function ( ) {
228
208
let h = transformTestHelper ( {
229
209
presets,
230
210
plugins : [
231
211
[
232
212
DebugToolsPlugin ,
233
213
{
214
+ externalizeHelpers : {
215
+ module : true ,
216
+ } ,
234
217
debugTools : {
235
218
source : '@ember/debug-tools' ,
236
219
} ,
237
- envFlags : {
238
- source : '@ember/env-flags' ,
239
- flags : {
240
- DEBUG : true ,
241
- } ,
242
- } ,
243
-
244
- svelte : {
245
- 'ember-source' : '2.15.0' ,
246
- } ,
247
-
248
- features : [
249
- {
250
- name : 'my-app' ,
251
- source : 'my-app/features' ,
252
- flags : {
253
- FEATURE_A : false ,
254
- FEATURE_B : true ,
255
- } ,
256
- } ,
257
- // Note this going to have to be concated in by each lib
258
- {
259
- name : 'ember-source' ,
260
- source : '@ember/features' ,
261
- flags : {
262
- DEPRECATED_PARTIALS : '2.14.0' ,
263
- DEPRECATED_CONTROLLERS : '2.16.0' ,
264
- } ,
265
- } ,
266
- ] ,
220
+ flags : [ { source : '@ember/env-flags' , flags : { DEBUG : true } } ] ,
267
221
} ,
268
222
] ,
269
223
] ,
270
224
} ) ;
271
225
272
- h . generateTest ( 'development-svelte-builds ' ) ;
226
+ h . generateTest ( 'retain-module-external-helpers ' ) ;
273
227
} ) ;
274
228
275
- describe ( 'Production Svelte Builds' , function ( ) {
229
+ describe ( 'Svelte Builds' , function ( ) {
276
230
let h = transformTestHelper ( {
277
231
presets,
278
232
plugins : [
@@ -282,18 +236,8 @@ function createTests(options) {
282
236
debugTools : {
283
237
source : '@ember/debug-tools' ,
284
238
} ,
285
- envFlags : {
286
- source : '@ember/env-flags' ,
287
- flags : {
288
- DEBUG : false ,
289
- } ,
290
- } ,
291
-
292
- svelte : {
293
- 'ember-source' : '2.15.0' ,
294
- } ,
295
-
296
- features : [
239
+ flags : [
240
+ { source : '@ember/env-flags' , flags : { DEBUG : true } } ,
297
241
{
298
242
name : 'my-app' ,
299
243
source : 'my-app/features' ,
@@ -312,12 +256,16 @@ function createTests(options) {
312
256
} ,
313
257
} ,
314
258
] ,
259
+
260
+ svelte : {
261
+ 'ember-source' : '2.15.0' ,
262
+ } ,
315
263
} ,
316
264
] ,
317
265
] ,
318
266
} ) ;
319
267
320
- h . generateTest ( 'production -svelte-builds' ) ;
268
+ h . generateTest ( 'development -svelte-builds' ) ;
321
269
} ) ;
322
270
323
271
describe ( 'Inline Env Flags' , function ( ) {
@@ -327,17 +275,10 @@ function createTests(options) {
327
275
[
328
276
DebugToolsPlugin ,
329
277
{
330
- envFlags : {
331
- source : '@ember/env-flags' ,
332
- flags : {
333
- DEBUG : true ,
334
- TESTING : false ,
335
- } ,
336
- } ,
337
278
debugTools : {
338
279
source : '@ember/debug-tools' ,
339
280
} ,
340
- features : [ ] ,
281
+ flags : [ { source : '@ember/env-flags' , flags : { DEBUG : true , TESTING : false } } ] ,
341
282
} ,
342
283
] ,
343
284
] ,
@@ -357,12 +298,7 @@ function createTests(options) {
357
298
debugTools : {
358
299
source : '@ember/debug-tools' ,
359
300
} ,
360
- envFlags : {
361
- source : '@ember/env-flags' ,
362
- flags : {
363
- DEBUG : true ,
364
- } ,
365
- } ,
301
+ flags : [ { source : '@ember/env-flags' , flags : { DEBUG : true } } ] ,
366
302
} ,
367
303
] ,
368
304
] ,
@@ -379,23 +315,19 @@ function createTests(options) {
379
315
[
380
316
DebugToolsPlugin ,
381
317
{
382
- envFlags : {
383
- source : '@ember/env-flags' ,
384
- flags : {
385
- DEBUG : false ,
386
- } ,
387
- } ,
388
318
debugTools : {
389
319
source : '@ember/debug-tools' ,
390
320
} ,
391
- features : {
392
- name : 'ember-source' ,
393
- source : '@ember/features' ,
394
- flags : {
395
- FEATURE_A : true ,
396
- FEATURE_B : null ,
321
+ flags : [
322
+ { source : '@ember/env-flags' , flags : { DEBUG : false } } ,
323
+ {
324
+ source : '@ember/features' ,
325
+ flags : {
326
+ FEATURE_A : true ,
327
+ FEATURE_B : null ,
328
+ } ,
397
329
} ,
398
- } ,
330
+ ] ,
399
331
} ,
400
332
] ,
401
333
] ,
@@ -411,23 +343,19 @@ function createTests(options) {
411
343
[
412
344
DebugToolsPlugin ,
413
345
{
414
- envFlags : {
415
- source : '@ember/env-flags' ,
416
- flags : {
417
- DEBUG : false ,
418
- } ,
419
- } ,
420
346
debugTools : {
421
347
source : '@ember/debug-tools' ,
422
348
} ,
423
- features : {
424
- name : 'ember-source' ,
425
- source : '@ember/features' ,
426
- flags : {
427
- FEATURE_A : true ,
428
- FEATURE_B : null ,
349
+ flags : [
350
+ { source : '@ember/env-flags' , flags : { DEBUG : false } } ,
351
+ {
352
+ source : '@ember/features' ,
353
+ flags : {
354
+ FEATURE_A : true ,
355
+ FEATURE_B : null ,
356
+ } ,
429
357
} ,
430
- } ,
358
+ ] ,
431
359
} ,
432
360
] ,
433
361
] ,
@@ -443,23 +371,20 @@ function createTests(options) {
443
371
[
444
372
DebugToolsPlugin ,
445
373
{
446
- envFlags : {
447
- source : '@ember/env-flags' ,
448
- flags : {
449
- DEBUG : true ,
374
+ flags : [
375
+ { source : '@ember/env-flags' , flags : { DEBUG : true } } ,
376
+ {
377
+ name : 'ember-source' ,
378
+ source : '@ember/features' ,
379
+ flags : {
380
+ FOO_BAR : false ,
381
+ WIDGET_WOO : false ,
382
+ } ,
450
383
} ,
451
- } ,
384
+ ] ,
452
385
debugTools : {
453
386
source : '@ember/debug-tools' ,
454
387
} ,
455
- features : {
456
- name : 'ember-source' ,
457
- source : '@ember/features' ,
458
- flags : {
459
- FOO_BAR : false ,
460
- WIDGET_WOO : false ,
461
- } ,
462
- } ,
463
388
} ,
464
389
] ,
465
390
] ,
0 commit comments