Skip to content

Commit 3fd3f60

Browse files
committed
fix: Update file paths in check-test-coverage.js
- Fix readFileSync paths to use path.join(__dirname, '..', ...) - Ensures script works correctly when run from scripts/ directory - Resolves ENOENT error for phantom.js
1 parent 0c637f6 commit 3fd3f60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/check-test-coverage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ function main() {
195195
log('\n🔍 Checking Test Coverage...\n', 'cyan');
196196

197197
// Read files
198-
const phantomCode = fs.readFileSync('phantom.js', 'utf8');
199-
const testCode = fs.readFileSync('phantom.test.js', 'utf8');
198+
const phantomCode = fs.readFileSync(path.join(__dirname, '..', 'phantom.js'), 'utf8');
199+
const testCode = fs.readFileSync(path.join(__dirname, '..', 'phantom.test.js'), 'utf8');
200200

201201
// Extract functions and tests
202202
const allFunctions = extractFunctions(phantomCode);

0 commit comments

Comments
 (0)