From 3bc2838360627f78a91a7cad81f3bc97711410c2 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 29 May 2022 14:50:55 -0500 Subject: refactor: move everything into src/ subdirectory --- test.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 test.js (limited to 'test.js') diff --git a/test.js b/test.js deleted file mode 100644 index b7c1e58..0000000 --- a/test.js +++ /dev/null @@ -1,22 +0,0 @@ -import fs from 'node:fs'; -import { execSync } from 'node:child_process'; - -function recursiveScanDir(path, f) -{ - let dirs = []; - for (let dirent of fs.readdirSync(path, { withFileTypes: true })) { - if (dirent.isDirectory()) dirs.push(`${path}/${dirent.name}`); - else f(`${path}/${dirent.name}`); - } - for (let dir of dirs) { - recursiveScanDir(dir, f); - } -} - -recursiveScanDir('./modules', fname => { - if (fname.endsWith('.test.js')) { - console.log(`======== ${fname} ========`); - execSync(`node ${fname}`, { stdio: 'inherit' }); - console.log(''); - } -}); -- cgit v1.2.1