From be8b27c23568fc85fb191cae591b9cb50acb8142 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Fri, 20 Mar 2020 21:59:54 -0400 Subject: [PATCH] Configure an ignore pattern so jest will shut up If the nodenv tarball (as downloaded by the tool-cache) lives in tmp/ along with the "cached" version, then jest's haste-map nonsense will find duplicate package names and throw a warning. (Despite these packages never being required!?!?) Option: configure "modulePathIgnorePatterns": ["/tmp"] in package.json Or: move the temp download cache out of the project https://github.com/facebook/jest/issues/8114 --- installer.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.test.js b/installer.test.js index a019d07..89dfdfd 100644 --- a/installer.test.js +++ b/installer.test.js @@ -8,7 +8,7 @@ const path = require('path') const existsSync = require('fs').existsSync process.env.RUNNER_TOOL_CACHE = path.join(__dirname, '../tmp/runner_tools') -process.env.RUNNER_TEMP = path.join(__dirname, '../tmp/runner_temp') +process.env.RUNNER_TEMP = path.join(__dirname, '../tmp/runner_tmpdir') const installNodenv = require('./installer').installNodenv