File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
libraries/search-javascript/lib/testbuilding Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,10 @@ export class JavaScriptSuiteBuilder {
49
49
const paths : string [ ] = [ ] ;
50
50
51
51
// write the test cases with logs to know what to assert
52
+ let totalAmount = 0 ;
52
53
if ( compact ) {
53
54
for ( const key of archive . keys ( ) ) {
55
+ totalAmount += archive . get ( key ) . length ;
54
56
const decodedTest = this . decoder . decode (
55
57
archive . get ( key ) ,
56
58
`${ key } ` ,
@@ -67,6 +69,7 @@ export class JavaScriptSuiteBuilder {
67
69
}
68
70
} else {
69
71
for ( const key of archive . keys ( ) ) {
72
+ totalAmount += archive . get ( key ) . length ;
70
73
for ( const testCase of archive . get ( key ) ) {
71
74
const decodedTest = this . decoder . decode (
72
75
testCase ,
@@ -93,7 +96,7 @@ export class JavaScriptSuiteBuilder {
93
96
94
97
const { stats, instrumentationData, assertionData } = await this . runner . run (
95
98
paths ,
96
- archive . size * 2
99
+ totalAmount * 2
97
100
) ;
98
101
if ( assertionData ) {
99
102
// put assertion data on testCases
You can’t perform that action at this time.
0 commit comments