summary refs log tree commit diff
path: root/api/jest/setup.js
diff options
context:
space:
mode:
authorxnacly <matteogropp@protonmail.com>2021-08-30 16:21:54 +0200
committerxnacly <matteogropp@protonmail.com>2021-08-30 16:21:54 +0200
commitd107c66358592336d9f6ba8d263b645c242b4c1e (patch)
tree7516382d1ce79ff3357a0560f87e847d426f1c5c /api/jest/setup.js
parentadded jest config, installed supertest (diff)
downloadserver-d107c66358592336d9f6ba8d263b645c242b4c1e.tar.xz
added setup for jest tests
Diffstat (limited to 'api/jest/setup.js')
-rw-r--r--api/jest/setup.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/jest/setup.js b/api/jest/setup.js
new file mode 100644
index 00000000..abc485ae
--- /dev/null
+++ b/api/jest/setup.js
@@ -0,0 +1,2 @@
+jest.spyOn(global.console, "log").mockImplementation(() => jest.fn());
+jest.spyOn(global.console, "info").mockImplementation(() => jest.fn());