Added Jest for testing both front and backend

This commit is contained in:
Jori Lallo
2016-09-09 01:35:39 -07:00
parent f4d1e62c13
commit 458735f341
21 changed files with 370 additions and 18 deletions
+2
View File
@@ -0,0 +1,2 @@
// Mock for node-uuid
global.console.warn = () => {};
+7
View File
@@ -0,0 +1,7 @@
const ctx = {
cache: {
set: () => {},
},
};
export default ctx;
+1
View File
@@ -0,0 +1 @@
export default '';
+2
View File
@@ -0,0 +1,2 @@
import idObj from 'identity-obj-proxy';
export default idObj;
+1
View File
@@ -0,0 +1 @@
window.matchMedia = (data) => data;