@@ -5,7 +5,7 @@ import { runInNewContext } from "node:vm";
55import { describe , expect , it } from "vitest" ;
66import {
77 isSupportedOpenClawNodeVersion ,
8- OPENCLAW_PROCESS_NODE_VERSION_CHECK ,
8+ PROCESS_NODE_VERSION_CHECK ,
99} from "../../../node-version.mjs" ;
1010import { NODE_RELEASE_VERSION_CASES } from "../../../test/helpers/node-version-cases.js" ;
1111import type { WorkerSshEndpoint } from "../../plugins/types.js" ;
@@ -392,15 +392,15 @@ describe("bootstrapWorker", () => {
392392 ) . rejects . toThrow ( "Node 22.22.3+, 24.15.0+, or 25.9.0+ with WAL-reset-safe SQLite" ) ;
393393 expect ( runner . calls ) . toHaveLength ( 2 ) ;
394394 expect ( runner . calls [ 0 ] ?. options . input ) . toContain (
395- `const nodeSafe = ${ OPENCLAW_PROCESS_NODE_VERSION_CHECK } ;` ,
395+ `const nodeSafe = ${ PROCESS_NODE_VERSION_CHECK } ;` ,
396396 ) ;
397397 expect ( runner . calls [ 0 ] ?. options . input ) . toContain ( "SELECT sqlite_version() AS version" ) ;
398398 } ) ;
399399
400400 it ( "embeds a shell-safe Node release check matching the canonical contract" , ( ) => {
401- expect ( OPENCLAW_PROCESS_NODE_VERSION_CHECK ) . not . toContain ( "'" ) ;
401+ expect ( PROCESS_NODE_VERSION_CHECK ) . not . toContain ( "'" ) ;
402402 for ( const version of NODE_RELEASE_VERSION_CASES ) {
403- const actual = runInNewContext ( OPENCLAW_PROCESS_NODE_VERSION_CHECK , {
403+ const actual = runInNewContext ( PROCESS_NODE_VERSION_CHECK , {
404404 process : { versions : { node : version } } ,
405405 } ) ;
406406 expect ( actual , version ) . toBe ( isSupportedOpenClawNodeVersion ( version ) ) ;
0 commit comments