1+ import { buildSpawnOptions } from "@effect/platform-node-shared/internal/nodeChildProcessSpawner"
12import * as NodeChildProcessSpawner from "@effect/platform-node-shared/NodeChildProcessSpawner"
23import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem"
34import * as NodePath from "@effect/platform-node-shared/NodePath"
@@ -23,19 +24,19 @@ describe("buildSpawnOptions", () => {
2324 const base = { stdio : "pipe" } as const
2425
2526 it ( "defaults to hiding non-detached Windows children" , ( ) => {
26- assert . deepStrictEqual ( NodeChildProcessSpawner . buildSpawnOptions ( { } , base , "win32" ) , {
27+ assert . deepStrictEqual ( buildSpawnOptions ( { } , base , "win32" ) , {
2728 stdio : "pipe" ,
2829 detached : false ,
2930 shell : undefined ,
3031 windowsHide : true
3132 } )
32- assert . deepStrictEqual ( NodeChildProcessSpawner . buildSpawnOptions ( { detached : true } , base , "win32" ) , {
33+ assert . deepStrictEqual ( buildSpawnOptions ( { detached : true } , base , "win32" ) , {
3334 stdio : "pipe" ,
3435 detached : true ,
3536 shell : undefined ,
3637 windowsHide : false
3738 } )
38- assert . deepStrictEqual ( NodeChildProcessSpawner . buildSpawnOptions ( { detached : false } , base , "win32" ) , {
39+ assert . deepStrictEqual ( buildSpawnOptions ( { detached : false } , base , "win32" ) , {
3940 stdio : "pipe" ,
4041 detached : false ,
4142 shell : undefined ,
@@ -45,7 +46,7 @@ describe("buildSpawnOptions", () => {
4546
4647 it ( "allows windowsHide to be configured independently of detached" , ( ) => {
4748 assert . deepStrictEqual (
48- NodeChildProcessSpawner . buildSpawnOptions ( { detached : false , windowsHide : false } , base , "win32" ) ,
49+ buildSpawnOptions ( { detached : false , windowsHide : false } , base , "win32" ) ,
4950 {
5051 stdio : "pipe" ,
5152 detached : false ,
@@ -54,7 +55,7 @@ describe("buildSpawnOptions", () => {
5455 }
5556 )
5657 assert . deepStrictEqual (
57- NodeChildProcessSpawner . buildSpawnOptions ( { detached : true , windowsHide : true } , base , "win32" ) ,
58+ buildSpawnOptions ( { detached : true , windowsHide : true } , base , "win32" ) ,
5859 {
5960 stdio : "pipe" ,
6061 detached : true ,
0 commit comments