From a1af0e2c1d339bd1b62bc096b06300e4b109cbde Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Thu, 29 Jun 2017 19:37:45 +0200
Subject: [PATCH] refactor: jest caching (#388)

---
 .gitignore   | 5 +++--
 .npmignore   | 2 ++
 circle.yml   | 1 +
 package.json | 1 +
 4 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 0259fac66b..69a42dbf91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,8 @@
 /node_modules
 /config.js
-/npm-debug.log
 /coverage
 /dist
+/tmp
 .DS_Store
-*.log
+.jest-cache
+/*.log
diff --git a/.npmignore b/.npmignore
index 6ada11d8a7..6331739ccf 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,5 +1,6 @@
 /bin
 /coverage
+/docs
 /test
 node_modules
 .DS_Store
@@ -7,6 +8,7 @@ node_modules
 .eslintrc.js
 .gitattributes
 .gitignore
+.jest-cache
 circle.yml
 config.js
 npm-debug.log
diff --git a/circle.yml b/circle.yml
index d8629193fc..2600ea176f 100644
--- a/circle.yml
+++ b/circle.yml
@@ -12,6 +12,7 @@ dependencies:
   override:
     - yarn install --frozen-lockfile
   cache_directories:
+    - .jest-cache
     - ~/.cache/yarn
     - ~/.yarn
 
diff --git a/package.json b/package.json
index 1cc2847cfb..7f2b4122fa 100644
--- a/package.json
+++ b/package.json
@@ -91,6 +91,7 @@
     ]
   },
   "jest": {
+    "cacheDirectory": ".jest-cache",
     "coverageDirectory": "./coverage",
     "collectCoverage": true,
     "collectCoverageFrom": [
-- 
GitLab