diff --git a/test/core-tests/repo-path.js b/test/core-tests/repo-path.js index 95341dca44..a44e93d5d1 100644 --- a/test/core-tests/repo-path.js +++ b/test/core-tests/repo-path.js @@ -1,5 +1,10 @@ 'use strict' const path = require('path') +const isNode = require('detect-node') -module.exports = path.join(__dirname, '../repo-tests-run') +if (isNode) { + module.exports = path.join(__dirname, '../repo-tests-run') +} else { + module.exports = 'ipfs' +}