Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
core run-tests.mjs
492 B · 14 lines
JavaScript
123456789101112131415#!/usr/bin/env nodeimport { spawn } from 'node:child_process';
// Simple test runner shim used by `npm test` in this repo.// It runs Jasmine (the project's declared test runner) and forwards exit code.const runner = process.platform === 'win32' ? 'npx.cmd' : 'npx';const args = ['jasmine'];const p = spawn(runner, args, { stdio: 'inherit' });
p.on('exit', code => process.exit(code));p.on('error', err => { console.error('Failed to start test runner:', err); process.exit(1);});