Skip to content

Commit

Permalink
feat: added project cache path and set jest to that path
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaiSchmid committed Sep 21, 2018
1 parent 103041e commit 9c312ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/jest.config.js
Expand Up @@ -2,7 +2,7 @@ const paths = require('./paths');

module.exports = {
rootDir: paths.projectRoot,
cacheDirectory: '~/.cache',
cacheDirectory: paths.projectCache,
transform: {
'^.+\\.jsx?$': require.resolve('./jest/JSTransformer.js'),
},
Expand Down
1 change: 1 addition & 0 deletions config/paths.js
Expand Up @@ -11,6 +11,7 @@ module.exports = {
projectIndexJs: resolveProjectDirectory('src/index.js'),
projectRoot,
projectSrc: resolveProjectDirectory('src'),
projectCache: resolveProjectDirectory('.cache'),

selfIgnore: resolveSelfDirectory('config/.ignore'),

Expand Down

0 comments on commit 9c312ac

Please sign in to comment.