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
__mocks__/console.js Normal file
View File

@@ -0,0 +1,2 @@
// Mock for node-uuid
global.console.warn = () => {};

7
__mocks__/ctx.js Normal file
View File

@@ -0,0 +1,7 @@
const ctx = {
cache: {
set: () => {},
},
};
export default ctx;

1
__mocks__/fileMock.js Normal file
View File

@@ -0,0 +1 @@
export default '';

2
__mocks__/styleMock.js Normal file
View File

@@ -0,0 +1,2 @@
import idObj from 'identity-obj-proxy';
export default idObj;

1
__mocks__/window.js Normal file
View File

@@ -0,0 +1 @@
window.matchMedia = (data) => data;