diff --git a/bin/pre-test b/bin/pre-test index 39e233b7..f6055912 100755 --- a/bin/pre-test +++ b/bin/pre-test @@ -1,5 +1,7 @@ #!/bin/sh +set -e + mkdir -p .tmp/modules ./node_modules/.bin/sinopia ./tests/config.yml & echo $! >> .tmp/sinopia.pid @@ -12,4 +14,4 @@ cp ~/.npmrc .tmp/.npmrc cp tests/.npmrc ~/.npmrc -npm config set registry http://localhost:4873/ +npm config set registry http://127.0.0.1:4873/ diff --git a/tests/scenarios/prepublish.js b/tests/scenarios/prepublish.js index 625be3f9..3f34cd37 100644 --- a/tests/scenarios/prepublish.js +++ b/tests/scenarios/prepublish.js @@ -23,6 +23,7 @@ module.exports = function (test, createModule) { nixt() .cwd(cwd) .env('CI', true) + .env('npm_config_registry', 'http://127.0.0.1:4873/') .exec('git commit --allow-empty -m "' + message + '"') .run('npm run prepublish') .code(code)