New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

codi-test-framework

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codi-test-framework - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

2

package.json
{
"name": "codi-test-framework",
"version": "0.0.15",
"version": "0.0.16",
"description": "A simple test framework for JavaScript",

@@ -5,0 +5,0 @@ "main": "src/testRunner.js",

@@ -80,2 +80,34 @@ import fs from 'fs';

// Function to run a single test file
async function runWebTestFile(testFile) {
try {
await import(testFile);
} catch (error) {
console.error(`Error running test file ${testFile}:`);
console.error(error.stack);
failedTests++;
}
}
// Function to run all test files
export async function runWebTests(testFiles) {
console.log(`Running ${testFiles.length} test file(s)`);
// Run each test file sequentially
for (const file of testFiles) {
await runWebTestFile(file);
}
// Print the test summary
console.log('Test Summary:');
console.log(` Passed: ${passedTests}`);
console.log(` Failed: ${failedTests}`);
// Return the test results
return {
passed: passedTests,
failed: failedTests
};
}
// CLI function

@@ -82,0 +114,0 @@ export function runCLI() {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc