fix(test): convert with-server.js to ESM (use import syntax instead of require) (#4363)

Co-authored-by: Vladyslav Odobesku <VladyslavOdobesku@intellias.com>
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Vladyslav Odobesku
2026-07-10 14:01:17 +03:00
committed by GitHub
parent 50fa63ddf4
commit 62d716aed5

View File

@@ -1,6 +1,6 @@
// This script runs a Node.js server passed to it while running aother program.
// This script runs a Node.js server passed to it while running another program.
const { spawn } = require('child_process')
import { spawn } from 'child_process';
if (process.argv.length < 4) {
console.error("Usage: node with-server.js <path-to-server-js> <command-to-run> [arg]...");