Added Jest for testing both front and backend
This commit is contained in:
2
__mocks__/console.js
Normal file
2
__mocks__/console.js
Normal file
@@ -0,0 +1,2 @@
|
||||
// Mock for node-uuid
|
||||
global.console.warn = () => {};
|
||||
7
__mocks__/ctx.js
Normal file
7
__mocks__/ctx.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const ctx = {
|
||||
cache: {
|
||||
set: () => {},
|
||||
},
|
||||
};
|
||||
|
||||
export default ctx;
|
||||
1
__mocks__/fileMock.js
Normal file
1
__mocks__/fileMock.js
Normal file
@@ -0,0 +1 @@
|
||||
export default '';
|
||||
2
__mocks__/styleMock.js
Normal file
2
__mocks__/styleMock.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import idObj from 'identity-obj-proxy';
|
||||
export default idObj;
|
||||
1
__mocks__/window.js
Normal file
1
__mocks__/window.js
Normal file
@@ -0,0 +1 @@
|
||||
window.matchMedia = (data) => data;
|
||||
Reference in New Issue
Block a user