Commit f87b698 1 parent 44faa72 commit f87b698 Copy full SHA for f87b698
File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ const path = require('path')
3
3
4
4
const t = require ( 'tap' )
5
5
6
- const configPath = path . resolve ( __dirname , '../config.js' )
7
-
8
6
function spawn ( cmd , options = { } ) {
9
7
const { stdout } = cp . spawnSync (
10
8
process . argv [ 0 ] , // node binary
@@ -30,7 +28,7 @@ t.equal(
30
28
spawn (
31
29
[
32
30
'-r' ,
33
- configPath ,
31
+ './config' ,
34
32
'-e' ,
35
33
'console.log(process.env.BASIC)' ,
36
34
'dotenv_config_encoding=utf8' ,
@@ -45,7 +43,7 @@ t.equal(
45
43
spawn (
46
44
[
47
45
'-r' ,
48
- configPath ,
46
+ './config' ,
49
47
'-e' ,
50
48
'console.log(process.env.BASIC)'
51
49
] ,
@@ -63,7 +61,7 @@ t.equal(
63
61
spawn (
64
62
[
65
63
'-r' ,
66
- configPath ,
64
+ './config' ,
67
65
'-e' ,
68
66
'console.log(process.env.BASIC)' ,
69
67
'dotenv_config_path=./tests/.env'
You can’t perform that action at this time.
0 commit comments