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 21, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 204079b commit abd9bdb
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
@@ -46,6 +46,11 @@
"nodenv",
"version"
],
"jest": {
"modulePathIgnorePatterns": [
"/tmp"
]
},
"standard": {
"ignore": "dist"
}
2 changes: 1 addition & 1 deletion setup-nodenv/installer.test.js
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit abd9bdb

Please sign in to comment.