From 4cd66972c1e1be67b2f1dd22e6d9be46e28569f3 Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Mon, 29 Mar 2021 14:38:03 -0400 Subject: [PATCH] chore: fix smoke-tests snapshots --- smoke-tests/index.js | 1 + tap-snapshots/smoke-tests-index.js-TAP.test.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/smoke-tests/index.js b/smoke-tests/index.js index 2c2a1b6ab9543..1d352c62550db 100644 --- a/smoke-tests/index.js +++ b/smoke-tests/index.js @@ -13,6 +13,7 @@ t.cleanSnapshot = s => s.split(cwd).join('{CWD}') .replace(/\\+/g, '/') .replace(/\r\n/g, '\n') .replace(/\ \(in a browser\)/g, '') + .replace(/^npm@.*\ /mg, 'npm ') // setup server const registryServer = require('./server.js') diff --git a/tap-snapshots/smoke-tests-index.js-TAP.test.js b/tap-snapshots/smoke-tests-index.js-TAP.test.js index 932799bc5a47b..6fabc5cc30038 100644 --- a/tap-snapshots/smoke-tests-index.js-TAP.test.js +++ b/tap-snapshots/smoke-tests-index.js-TAP.test.js @@ -38,7 +38,7 @@ or on the command line via: npm --key=value More configuration info: npm help config Configuration fields: npm help 7 config -npm@7.7.5 {CWD} +npm {CWD} `