Skip to content

Commit 7489c94

Browse files
hacdiasachingbrain
authored andcommitted
fix: tests by adding go-ipfs to PATH (#100)
* fix: tests License: MIT Signed-off-by: Henrique Dias <[email protected]> * refactor: use require.resolve instead License: MIT Signed-off-by: Henrique Dias <[email protected]>
1 parent d36b42c commit 7489c94

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/install.spec.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ describe('install', function () {
2525
'--reporter=lcov',
2626
path.resolve(__dirname, '../src/cli/bin.js')
2727
].concat(args), {
28-
cwd: projectDirectory
28+
cwd: projectDirectory,
29+
env: {
30+
...process.env,
31+
PATH: `${path.dirname(require.resolve('go-ipfs-dep/go-ipfs/ipfs'))}:${process.env.PATH}`
32+
}
2933
})
3034

3135
const buffer = new OutputBuffer((line) => {

0 commit comments

Comments
 (0)