Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ export class JavaScriptSuiteBuilder {
const paths: string[] = [];

// write the test cases with logs to know what to assert
let totalAmount = 0;
if (compact) {
for (const key of archive.keys()) {
totalAmount += archive.get(key).length;
const decodedTest = this.decoder.decode(
archive.get(key),
`${key}`,
Expand All @@ -67,6 +69,7 @@ export class JavaScriptSuiteBuilder {
}
} else {
for (const key of archive.keys()) {
totalAmount += archive.get(key).length;
for (const testCase of archive.get(key)) {
const decodedTest = this.decoder.decode(
testCase,
Expand All @@ -93,7 +96,7 @@ export class JavaScriptSuiteBuilder {

const { stats, instrumentationData, assertionData } = await this.runner.run(
paths,
archive.size * 2
totalAmount * 2
);
if (assertionData) {
// put assertion data on testCases
Expand Down