From b7559f50bd440e5d92f42f300e4a08626efb00c9 Mon Sep 17 00:00:00 2001 From: Alexandre Bonaventure Geissmann Date: Mon, 22 Nov 2021 10:12:44 -0500 Subject: [PATCH] respect nyc cwd option in glob query --- task-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task-utils.js b/task-utils.js index cd4360c1..d3e27292 100644 --- a/task-utils.js +++ b/task-utils.js @@ -319,7 +319,7 @@ function findSourceFiles(nycOptions) { debug('searching files to include using patterns %o', patterns) - const allFiles = globby.sync(patterns, { absolute: true }) + const allFiles = globby.sync(patterns, { absolute: true, cwd: nycOptions.cwd }) return allFiles } /**