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
1 parent c198b3a commit be8b27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 be8b27c

Please sign in to comment.