From 0acd2a288d930ed9fe6a3b203bb95d3f65011cb6 Mon Sep 17 00:00:00 2001 From: xiongmao86 Date: Mon, 8 Jan 2024 09:36:43 +0800 Subject: [PATCH] fix: add content to package.json to pass test --- test/lib/utils/audit-error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/utils/audit-error.js b/test/lib/utils/audit-error.js index f6be56a152f71..0b977ba7d64f8 100644 --- a/test/lib/utils/audit-error.js +++ b/test/lib/utils/audit-error.js @@ -11,7 +11,7 @@ const auditError = async (t, { command, error, ...config } = {}) => { command, config, exec: true, - prefixDir: { 'package.json': '{}', 'package-lock.json': '{}' }, + prefixDir: { 'package.json': '{ "name": "does not matter" }', 'package-lock.json': '{}' }, }) const res = {}