Skip to content

Commit

Permalink
update webtests
Browse files Browse the repository at this point in the history
  • Loading branch information
RobAndrewHurst committed Apr 5, 2024
1 parent 0115ada commit 3f6d33a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codi-test-framework",
"version": "0.0.17",
"version": "0.0.18",
"description": "A simple test framework for JavaScript",
"main": "src/testRunner.js",
"type": "module",
Expand Down
10 changes: 6 additions & 4 deletions src/testRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,16 @@ export async function runWebTests(testFiles) {

// Run each test file sequentially
for (const file of testFiles) {
await runWebTestFile(file);
await runTestFile(file);
}

// Return the test results
return {
// Return a promise that resolves with the test results
return new Promise((resolve) => {
resolve({
passed: passedTests,
failed: failedTests
};
});
});
}

// CLI function
Expand Down

0 comments on commit 3f6d33a

Please sign in to comment.