codi-test-framework
Advanced tools
Comparing version 0.0.27 to 0.0.28
{ | ||
"name": "codi-test-framework", | ||
"version": "0.0.27", | ||
"version": "0.0.28", | ||
"description": "A simple test framework for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "src/testRunner.js", |
@@ -16,3 +16,3 @@ import fs from 'fs'; | ||
let testResults = []; | ||
let version = 'v0.0.27'; | ||
let version = 'v0.0.28'; | ||
@@ -71,6 +71,4 @@ export async function describe(description, callback) { | ||
const matcher = excludePattern(codiConfig.excludeDirectories); | ||
console.log(matcher); | ||
let testFiles = fs.readdirSync(testDirectory, { recursive: true }).filter(file => file.endsWith('.mjs')); | ||
console.log(testFiles); | ||
console.log(testFiles.filter(matcher)); | ||
testFiles = testFiles.filter(matcher); | ||
@@ -77,0 +75,0 @@ console.log(chalk.bold.magenta(`\nRunning tests in directory: ${chalk.underline(testDirectory)}`)); |
20
17309
259