From a4808fbd5601df10f6bdf20029cdbf1f06966c98 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 9 Aug 2022 12:37:09 -0700 Subject: [PATCH] chore: allow for much slower tests (#5276) --- test/lib/commands/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/commands/init.js b/test/lib/commands/init.js index e7b2739341437..2dcca5b7f0adc 100644 --- a/test/lib/commands/init.js +++ b/test/lib/commands/init.js @@ -371,7 +371,7 @@ t.test('workspaces', t => { }) const init = new Init(npm) await init.execWorkspaces([], ['a']) - const output = npm._mockOutputs.map(arr => arr.map(i => i.replace(/[0-9]*ms$/, '100ms'))) + const output = npm._mockOutputs.map(arr => arr.map(i => i.replace(/[0-9]*m?s$/, '100ms'))) t.matchSnapshot(output, 'should print helper info') const lockFilePath = resolve(npm.localPrefix, 'package-lock.json') const lockFile = fs.readFileSync(lockFilePath, { encoding: 'utf8' })