@@ -5,9 +5,6 @@ import * as fs from 'fs'
55import { clear } from '../src/transform.js'
66import { jest } from '@jest/globals'
77import { fileURLToPath } from 'url' ;
8- import { mergeConfiguration , resolveConfiguration } from '../src/utils.js'
9- import { ReleaseNotesBuilder } from '../src/releaseNotesBuilder.js'
10- import { OfflineRepository } from '../src/repositories/OfflineRepository.js'
118
129jest . setTimeout ( 180000 )
1310clear ( )
@@ -26,7 +23,7 @@ test('missing values should result in failure', () => {
2623 env : process . env
2724 }
2825 try {
29- cp . execSync ( ` node ${ ip } ` , options ) . toString ( )
26+ cp . execFileSync ( ' node' , [ ip ] , options ) . toString ( )
3027 } catch ( error : unknown ) {
3128 expect ( true ) . toBe ( true )
3229 }
@@ -64,7 +61,7 @@ test('should write result to file', () => {
6461 const options : cp . ExecSyncOptions = {
6562 env : process . env
6663 }
67- const result = cp . execSync ( ` node ${ ip } ` , options ) . toString ( )
64+ const result = cp . execFileSync ( ' node' , [ ip ] , options ) . toString ( )
6865 // should succeed
6966 expect ( result ) . toBeDefined ( )
7067
@@ -93,7 +90,7 @@ test('offline mode should work with commit mode', () => {
9390 env : process . env
9491 }
9592
96- const result = cp . execSync ( ` node ${ ip } ` , options ) . toString ( )
93+ const result = cp . execFileSync ( ' node' , [ ip ] , options ) . toString ( )
9794 // should succeed
9895 expect ( result ) . toBeDefined ( )
9996
0 commit comments