Skip to content

Commit

Permalink
Configure an ignore pattern so jest will shut up
Browse files Browse the repository at this point in the history
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

jestjs/jest#8114
  • Loading branch information
jasonkarns committed Mar 22, 2020
1 parent 04f543e commit b7b6192
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
"nodenv",
"version"
],
"jest": {
"modulePathIgnorePatterns": [
"/tmp"
]
},
"standard": {
"ignore": "dist"
}
Expand Down
2 changes: 1 addition & 1 deletion setup-nodenv/installer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b7b6192

Please sign in to comment.