import { execSync } from 'child_process' import { fileURLToPath } from 'url' import { dirname, join } from 'path' const __dirname = dirname(fileURLToPath(import.meta.url)) const root = dirname(__dirname) try { execSync('npx tsc -p tsconfig.tests.json', { cwd: root, stdio: 'inherit' }) } catch (e) { process.exit(1) } try { execSync('node --test dist-tests/tests/budget.test.js', { cwd: root, stdio: 'inherit' }) } catch (e) { process.exit(1) }