t50-53-local-enhancement.mjs 737 B

12345678910111213
  1. import { spawnSync } from 'node:child_process'
  2. const files = [
  3. 't50-pipe-detail.mjs', 't51-neighborhood.mjs', 't52-device-source.mjs',
  4. 't52-device-plan.mjs', 't52-device-pick.mjs', 't53-manhole.mjs',
  5. 't23-threejs-enhancement.mjs', 't23-visual-input.mjs', 't23-click-flow.mjs',
  6. 't23-sfc-compile.mjs', 't23-popup-placement.mjs', 't22-pipeline-rendering.mjs',
  7. ]
  8. for (const file of files) {
  9. const result = spawnSync(process.execPath, [new URL(file, import.meta.url).pathname.replace(/^\/([A-Za-z]:)/, '$1')], { stdio: 'inherit' })
  10. if (result.error) throw result.error
  11. if (result.status !== 0) process.exit(result.status || 1)
  12. }
  13. console.log(`Local enhancement regression scripts: ${files.length}/${files.length}`)