Start fixing tests
This commit is contained in:
parent
727b6b7ed5
commit
7fcd0f0bfa
19 changed files with 210 additions and 218 deletions
|
|
@ -19,4 +19,4 @@
|
|||
"webpack": "^5.103.0",
|
||||
"webpack-cli": "^6.0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,10 +80,10 @@ async function main(): Promise<void> {
|
|||
|
||||
if (!result.success) {
|
||||
allPassed = false;
|
||||
logger.error(`\n✗ FAILED: ${test.name}`);
|
||||
logger.error(`✗ FAILED: ${test.name}`);
|
||||
logger.error(`Error: ${result.error}`);
|
||||
} else {
|
||||
logger.info(`\n✓ PASSED: ${test.name} (${result.duration}ms)`);
|
||||
logger.info(`✓ PASSED: ${test.name} (${result.duration}ms)`);
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -46,12 +46,11 @@ export class TestRunner {
|
|||
for (let i = 0; i < test.steps.length; i++) {
|
||||
const step = test.steps[i];
|
||||
this.logger.info(
|
||||
`\nStep ${i + 1}/${test.steps.length}: ${JSON.stringify(step)}`
|
||||
`Step ${i + 1}/${test.steps.length}: ${JSON.stringify(step)}`
|
||||
);
|
||||
await this.executeStep(step);
|
||||
}
|
||||
|
||||
// Cleanup
|
||||
await this.cleanup();
|
||||
|
||||
const duration = Date.now() - startTime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue