From f82f540a0cf07e8fd95e36dea10a49aa839832d0 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 31 May 2022 22:54:59 -0500 Subject: move test.js and package.json to the root --- src/test.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/test.js (limited to 'src/test.js') diff --git a/src/test.js b/src/test.js deleted file mode 100644 index 6a92978..0000000 --- a/src/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('.', fname => { - if (fname.endsWith('.test.js')) { - console.log(`======== ${fname} ========`); - execSync(`node ${fname}`, { stdio: 'inherit' }); - console.log(''); - } -}); -- cgit v1.2.1