File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 15
15
"equal" : true ,
16
16
"expectAsync" : true ,
17
17
"notEqual" : true ,
18
+ "it_id" : true ,
18
19
"it_only_db" : true ,
19
20
"it_only_mongodb_version" : true ,
20
21
"it_only_postgres_version" : true ,
Original file line number Diff line number Diff line change @@ -428,6 +428,29 @@ global.it_exclude_dbs = excluded => {
428
428
}
429
429
} ;
430
430
431
+ let testExclusionList = [ ] ;
432
+ try {
433
+ // Fetch test exclusion list
434
+ testExclusionList = require ( './testExclusionList.json' ) ;
435
+ console . log ( `Using test exclusion list with ${ testExclusionList . length } entries` ) ;
436
+ } catch ( error ) {
437
+ if ( error . code !== 'MODULE_NOT_FOUND' ) {
438
+ throw error ;
439
+ }
440
+ }
441
+
442
+ // Disable test if its UUID is found in testExclusionList
443
+ global . it_id = ( id , func ) => {
444
+ if ( testExclusionList . includes ( id ) ) {
445
+ return xit ;
446
+ } else {
447
+ if ( func === undefined )
448
+ return it ;
449
+ else
450
+ return func ;
451
+ }
452
+ } ;
453
+
431
454
global . it_only_db = db => {
432
455
if (
433
456
process . env . PARSE_SERVER_TEST_DB === db ||
You can’t perform that action at this time.
0 commit comments