diff options
Diffstat (limited to 'spec/integration/js/yarn_spec.rb')
| -rw-r--r-- | spec/integration/js/yarn_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/integration/js/yarn_spec.rb b/spec/integration/js/yarn_spec.rb index bacac47..d81564c 100644 --- a/spec/integration/js/yarn_spec.rb +++ b/spec/integration/js/yarn_spec.rb @@ -150,10 +150,15 @@ RSpec.describe "yarn" do end end - context "when scanning a project with dependencies sourced from a custom registry", environment: 'offline' do - subject { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => fixture_file_content('js/custom-npm.crt') }) } + context "when scanning a project with dependencies sourced from a custom registry" do + subject { runner.scan(env: { 'ADDITIONAL_CA_CERT_BUNDLE' => x509_certificate('wildcard.test').read }) } + + let(:private_npm_host) { 'npm.test' } before do + add_host('npm.test', '127.0.0.1') + start_proxy_server + runner.add_file(".yarnrc.yml", "npmRegistryServer: \"https://#{private_npm_host}\"") runner.add_file("package.json") do |
