Skip to content

Commit 5bf4bd2

Browse files
committed
test(declarations): better error message
1 parent a9f38a3 commit 5bf4bd2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/test-build-declarations.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ const NUMBER_OF_DECLARATIONS = 18;
1616
});
1717

1818
if (declarations.length !== NUMBER_OF_DECLARATIONS) {
19-
console.log('Unexpected number of declarations');
19+
console.log(
20+
'Unexpected number of declarations. expected:',
21+
NUMBER_OF_DECLARATIONS,
22+
'but got:',
23+
declarations.length
24+
);
2025
process.exit(1);
2126
}
2227

0 commit comments

Comments
 (0)