codi-test-framework
Advanced tools
Comparing version 0.0.45 to 0.0.46
{ | ||
"name": "codi-test-framework", | ||
"version": "v0.0.45", | ||
"version": "v0.0.46", | ||
"description": "A simple test framework for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "src/testRunner.js", |
@@ -44,5 +44,3 @@ import { state } from '../state/TestState.js'; | ||
const defaults = { | ||
parallel: false, | ||
quiet: false, | ||
batchSize: 5, | ||
showSummary: true | ||
@@ -61,30 +59,4 @@ } | ||
try { | ||
if (parallel) { | ||
if (batchSize > 0) { | ||
// Run tests in batches | ||
const batches = []; | ||
for (let i = 0; i < testFiles.length; i += batchSize) { | ||
batches.push(testFiles.slice(i, i + batchSize)); | ||
} | ||
for (const [index, batch] of batches.entries()) { | ||
if (!quiet) { | ||
console.log(chalk.blue(`\nBatch ${index + 1}/${batches.length}`)); | ||
} | ||
await Promise.all( | ||
batch.map(file => runWebTestFile(file, options)) | ||
); | ||
} | ||
} else { | ||
// Run all tests in parallel | ||
await Promise.all( | ||
testFiles.map(file => runWebTestFile(file, options)) | ||
); | ||
} | ||
} else { | ||
// Run tests sequentially | ||
for (const file of testFiles) { | ||
await runWebTestFile(file, options); | ||
} | ||
for (const file of testFiles) { | ||
await runWebTestFile(file, options); | ||
} | ||
@@ -91,0 +63,0 @@ } catch (error) { |
@@ -32,3 +32,3 @@ import chalk from 'chalk'; | ||
export const version = 'v0.0.45'; | ||
export const version = 'v0.0.46'; | ||
@@ -35,0 +35,0 @@ /** |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
32164
708