Skip to content

Commit

Permalink
debug args
Browse files Browse the repository at this point in the history
  • Loading branch information
seemk committed Oct 17, 2024
1 parent 76631dc commit 9ef1db9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ function findTestFiles(dir, fileList = []) {

// Find all test files in the ./test directory
const testFiles = findTestFiles(__dirname);
console.log(testFiles);
const majorVersion = parseInt(process.version.substring(1, 3))
const olderThanNode20 = majorVersion < 20;

const args = [
'--require',
'ts-node/register/transpile-only',
'--test',
olderThanNode20 ? '' : '--test-timeout=50000',
...testFiles,
];

console.log(args);

const testProcess = spawn('node', args);

testProcess.stdout.pipe(process.stdout);
Expand Down

0 comments on commit 9ef1db9

Please sign in to comment.