Curl url with npm package

This commit is contained in:
Sander Declerck 2025-10-14 14:10:23 +02:00
parent f655e8cfcb
commit 35beeb55b0
No known key found for this signature in database

View file

@ -68,7 +68,7 @@ describe("E2E: Safe chain proxy", () => {
await new Promise((resolve) => setTimeout(resolve, 500)); await new Promise((resolve) => setTimeout(resolve, 500));
try { try {
const curlOutput = container.dockerExec( const curlOutput = container.dockerExec(
"curl -I http://localhost:4873/" "curl -I http://localhost:4873/lodash"
); );
if (curlOutput.includes("200 OK")) { if (curlOutput.includes("200 OK")) {
verdaccioStarted = true; verdaccioStarted = true;
@ -88,6 +88,8 @@ describe("E2E: Safe chain proxy", () => {
"npm install lodash --registry=http://localhost:4873" "npm install lodash --registry=http://localhost:4873"
); );
console.log("NPM install output:", result.output);
// Check if the installation was successful // Check if the installation was successful
assert( assert(
result.output.includes("added"), result.output.includes("added"),