@@ -9,7 +9,7 @@ const defaultOptions = {
9
9
describe ( 'execParsingExtension' , ( ) => {
10
10
it ( 'reads from command as root level string' , async ( ) => {
11
11
process . env . APP_CONFIG = JSON . stringify ( {
12
- $exec : 'printf test123' ,
12
+ $exec : 'echo test123' ,
13
13
} ) ;
14
14
15
15
const { fullConfig } = await loadUnvalidatedConfig ( defaultOptions ) ;
@@ -19,7 +19,7 @@ describe('execParsingExtension', () => {
19
19
20
20
it ( 'reads from command within nested object options' , async ( ) => {
21
21
process . env . APP_CONFIG = JSON . stringify ( {
22
- $exec : { command : 'printf test123' } ,
22
+ $exec : { command : 'echo test123' } ,
23
23
} ) ;
24
24
25
25
const { fullConfig } = await loadUnvalidatedConfig ( defaultOptions ) ;
@@ -29,7 +29,7 @@ describe('execParsingExtension', () => {
29
29
30
30
it ( 'reads JSON as string by default' , async ( ) => {
31
31
process . env . APP_CONFIG = JSON . stringify ( {
32
- $exec : { command : `printf '{"test": true}'` } ,
32
+ $exec : { command : `echo '{"test": true}'` } ,
33
33
} ) ;
34
34
35
35
const { fullConfig } = await loadUnvalidatedConfig ( defaultOptions ) ;
@@ -39,7 +39,7 @@ describe('execParsingExtension', () => {
39
39
40
40
it ( 'parses JSON if parseOutput true' , async ( ) => {
41
41
process . env . APP_CONFIG = JSON . stringify ( {
42
- $exec : { command : `printf '{"test": true}'` , parseOutput : true } ,
42
+ $exec : { command : `echo '{"test": true}'` , parseOutput : true } ,
43
43
} ) ;
44
44
45
45
const { fullConfig } = await loadUnvalidatedConfig ( defaultOptions ) ;
@@ -49,7 +49,7 @@ describe('execParsingExtension', () => {
49
49
50
50
it ( 'trims whitespace by default' , async ( ) => {
51
51
process . env . APP_CONFIG = JSON . stringify ( {
52
- $exec : { command : `printf ' test123\n'` } ,
52
+ $exec : { command : `echo ' test123\n'` } ,
53
53
} ) ;
54
54
55
55
const { fullConfig } = await loadUnvalidatedConfig ( defaultOptions ) ;
@@ -59,7 +59,7 @@ describe('execParsingExtension', () => {
59
59
60
60
it ( 'reads raw output if trimWhitespace false' , async ( ) => {
61
61
process . env . APP_CONFIG = JSON . stringify ( {
62
- $exec : { command : `printf ' test123\n '` , trimWhitespace : false } ,
62
+ $exec : { command : `echo ' test123'` , trimWhitespace : false } ,
63
63
} ) ;
64
64
65
65
const { fullConfig } = await loadUnvalidatedConfig ( defaultOptions ) ;
0 commit comments