Skip to content

Commit

Permalink
fix: tests by adding go-ipfs to PATH (#100)
Browse files Browse the repository at this point in the history
* fix: tests

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>

* refactor: use require.resolve instead

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
hacdias authored and achingbrain committed May 11, 2019
1 parent d36b42c commit 7489c94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/install.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ describe('install', function () {
'--reporter=lcov',
path.resolve(__dirname, '../src/cli/bin.js')
].concat(args), {
cwd: projectDirectory
cwd: projectDirectory,
env: {
...process.env,
PATH: `${path.dirname(require.resolve('go-ipfs-dep/go-ipfs/ipfs'))}:${process.env.PATH}`
}
})

const buffer = new OutputBuffer((line) => {
Expand Down

0 comments on commit 7489c94

Please sign in to comment.