File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,12 @@ type TestCase = {
13
13
dump ?: string
14
14
}
15
15
16
- type TestFile = [ TestCase & { name : string } , ...TestCase [ ] ]
16
+ type TestFile = [ TestCase & { name : string ; skip ?: boolean } , ...TestCase [ ] ]
17
17
18
18
const skip : Record < string , boolean | string [ ] > = {
19
- '2JQS/0' : [ 'test.event' , 'errors' ] , //
19
+ '2JQS/0' : [ 'test.event' , 'errors' ] , // duplicate empty keys are invalid
20
20
'9MMA/0' : [ 'errors' ] , // allow stream with directive & no docs
21
- 'SF5V/0' : [ 'errors' ] , // allow duplicate %YAML directives
22
-
23
- // FIXME recent upstream additions
24
- 'ZYU8/2' : [ 'errors' ]
21
+ 'SF5V/0' : [ 'errors' ] // allow duplicate %YAML directives
25
22
}
26
23
27
24
function testJsonMatch ( docs : Document [ ] , json : string ) {
@@ -58,6 +55,7 @@ for (const fn of readdirSync(testRoot)) {
58
55
const file = readFileSync ( path , 'utf8' )
59
56
const testData = parse ( file ) as TestFile
60
57
if ( ! Array . isArray ( testData ) ) throw new Error ( `Unsupported test file: ${ fn } ` )
58
+ if ( testData [ 0 ] . skip ) continue
61
59
62
60
const name = `${ id } : ${ testData [ 0 ] . name } `
63
61
for ( let i = 0 ; i < testData . length ; ++ i ) {
You can’t perform that action at this time.
0 commit comments