Skip to content

Commit f87b698

Browse files
committed
Set test config back to use string ./config - as more useful example to those reading the tests
1 parent 44faa72 commit f87b698

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test-config-cli.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ const path = require('path')
33

44
const t = require('tap')
55

6-
const configPath = path.resolve(__dirname, '../config.js')
7-
86
function spawn (cmd, options = {}) {
97
const { stdout } = cp.spawnSync(
108
process.argv[0], // node binary
@@ -30,7 +28,7 @@ t.equal(
3028
spawn(
3129
[
3230
'-r',
33-
configPath,
31+
'./config',
3432
'-e',
3533
'console.log(process.env.BASIC)',
3634
'dotenv_config_encoding=utf8',
@@ -45,7 +43,7 @@ t.equal(
4543
spawn(
4644
[
4745
'-r',
48-
configPath,
46+
'./config',
4947
'-e',
5048
'console.log(process.env.BASIC)'
5149
],
@@ -63,7 +61,7 @@ t.equal(
6361
spawn(
6462
[
6563
'-r',
66-
configPath,
64+
'./config',
6765
'-e',
6866
'console.log(process.env.BASIC)',
6967
'dotenv_config_path=./tests/.env'

0 commit comments

Comments
 (0)