Monorepo for Aesthetic.Computer aesthetic.computer
at main 14 lines 492 B view raw
1#!/usr/bin/env node 2import { spawn } from 'node:child_process'; 3 4// Simple test runner shim used by `npm test` in this repo. 5// It runs Jasmine (the project's declared test runner) and forwards exit code. 6const runner = process.platform === 'win32' ? 'npx.cmd' : 'npx'; 7const args = ['jasmine']; 8const p = spawn(runner, args, { stdio: 'inherit' }); 9 10p.on('exit', code => process.exit(code)); 11p.on('error', err => { 12 console.error('Failed to start test runner:', err); 13 process.exit(1); 14});