@@ -119,22 +119,16 @@ function extractSkippedTests(filePath: string): SkippedTest[] {
119119 const fullTestName = match [ 1 ] ;
120120 // Extract reason after the last " - "
121121 const lastDashIndex = fullTestName . lastIndexOf ( " - " ) ;
122- const skipReason =
123- lastDashIndex > 0 ? fullTestName . slice ( lastDashIndex + 3 ) : "" ;
124- const testName =
125- lastDashIndex > 0 ? fullTestName . slice ( 0 , lastDashIndex ) : fullTestName ;
122+ const skipReason = lastDashIndex > 0 ? fullTestName . slice ( lastDashIndex + 3 ) : "" ;
123+ const testName = lastDashIndex > 0 ? fullTestName . slice ( 0 , lastDashIndex ) : fullTestName ;
126124
127125 // Categorize
128126 let category : "design" | "now_working" | "unknown" = "unknown" ;
129127
130128 const reasonLower = skipReason . toLowerCase ( ) ;
131- if (
132- DESIGN_EXCLUSIONS . some ( ( d ) => reasonLower . includes ( d . toLowerCase ( ) ) )
133- ) {
129+ if ( DESIGN_EXCLUSIONS . some ( ( d ) => reasonLower . includes ( d . toLowerCase ( ) ) ) ) {
134130 category = "design" ;
135- } else if (
136- NOW_WORKING_PATTERNS . some ( ( p ) => reasonLower . includes ( p . toLowerCase ( ) ) )
137- ) {
131+ } else if ( NOW_WORKING_PATTERNS . some ( ( p ) => reasonLower . includes ( p . toLowerCase ( ) ) ) ) {
138132 category = "now_working" ;
139133 }
140134
@@ -180,10 +174,7 @@ function tryRunTest(test: SkippedTest): TestResult {
180174 try {
181175 // Run just this test file with a filter for this specific test
182176 const testPattern = test . testName . replace ( / [ [ \] ( ) ] / g, "\\$&" ) ;
183- const relativePath = path . relative (
184- path . join ( import . meta. dirname , ".." ) ,
185- test . file ,
186- ) ;
177+ const relativePath = path . relative ( path . join ( import . meta. dirname , ".." ) , test . file ) ;
187178
188179 const result = spawnSync (
189180 "npx" ,
@@ -250,10 +241,7 @@ function applyUnskips(results: TestResult[]): void {
250241/**
251242 * Generate markdown report
252243 */
253- function generateReport (
254- skippedTests : SkippedTest [ ] ,
255- results : TestResult [ ] ,
256- ) : string {
244+ function generateReport ( skippedTests : SkippedTest [ ] , results : TestResult [ ] ) : string {
257245 const lines : string [ ] = [ ] ;
258246
259247 lines . push ( "# TCK Audit Results" ) ;
@@ -292,9 +280,7 @@ function generateReport(
292280 // Design exclusions
293281 lines . push ( "## Design Exclusions (Will Not Be Fixed)" ) ;
294282 lines . push ( "" ) ;
295- lines . push (
296- "These tests require features that conflict with design decisions:" ,
297- ) ;
283+ lines . push ( "These tests require features that conflict with design decisions:" ) ;
298284 lines . push ( "" ) ;
299285 for ( const test of design . slice ( 0 , 20 ) ) {
300286 const relPath = path . relative ( TCK_DIR , test . file ) ;
@@ -308,9 +294,7 @@ function generateReport(
308294 // Now working candidates
309295 lines . push ( '## Candidates: Citing "Now Working" Features' ) ;
310296 lines . push ( "" ) ;
311- lines . push (
312- "These tests cite features that are now implemented. They should be verified:" ,
313- ) ;
297+ lines . push ( "These tests cite features that are now implemented. They should be verified:" ) ;
314298 lines . push ( "" ) ;
315299 for ( const test of nowWorking . slice ( 0 , 30 ) ) {
316300 const relPath = path . relative ( TCK_DIR , test . file ) ;
@@ -327,9 +311,7 @@ function generateReport(
327311 lines . push ( "" ) ;
328312 for ( const result of passed ) {
329313 const relPath = path . relative ( TCK_DIR , result . test . file ) ;
330- lines . push (
331- `- \`${ relPath } :${ result . test . lineNumber } \`: ${ result . test . testName } ` ,
332- ) ;
314+ lines . push ( `- \`${ relPath } :${ result . test . lineNumber } \`: ${ result . test . testName } ` ) ;
333315 }
334316 lines . push ( "" ) ;
335317 }
@@ -382,15 +364,11 @@ async function main(): Promise<void> {
382364 allSkipped . push ( ...extractSkippedTests ( file ) ) ;
383365 }
384366 console . log ( `Found ${ allSkipped . length } skipped tests` ) ;
385- console . log (
386- ` - Design exclusions: ${ allSkipped . filter ( ( t ) => t . category === "design" ) . length } ` ,
387- ) ;
367+ console . log ( ` - Design exclusions: ${ allSkipped . filter ( ( t ) => t . category === "design" ) . length } ` ) ;
388368 console . log (
389369 ` - Now working candidates: ${ allSkipped . filter ( ( t ) => t . category === "now_working" ) . length } ` ,
390370 ) ;
391- console . log (
392- ` - Unknown: ${ allSkipped . filter ( ( t ) => t . category === "unknown" ) . length } ` ,
393- ) ;
371+ console . log ( ` - Unknown: ${ allSkipped . filter ( ( t ) => t . category === "unknown" ) . length } ` ) ;
394372 console . log ( "" ) ;
395373
396374 let results : TestResult [ ] = [ ] ;
0 commit comments