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
commit9e4c7d119b3feb7a9d63a31c162b88b6839d75f9 (patch)
tree55076cf6ad127c080e212b4cb9ad0a4466302a06 /api/jest/setup.js
parentadded jest config, installed supertest (diff)
downloadserver-9e4c7d119b3feb7a9d63a31c162b88b6839d75f9.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());