feat: added Prisma
This commit is contained in:
Riccardo Senica
2023-08-05 17:23:34 +02:00
committed by GitHub
parent 9c01101c1b
commit 392e0db67b
17 changed files with 181 additions and 18 deletions

View File

@@ -1,15 +1,9 @@
import requests from 'supertest';
import server from './server';
beforeAll(() => {
jest.mock('../utils/addition', () => ({
addition: jest.fn((value: number) => value + 1)
}));
});
afterAll(() => {
jest.clearAllMocks();
});
jest.mock('../utils/addition', () => ({
addition: jest.fn((value: number) => value + 1)
}));
describe('server', () => {
it('returns input value increased by one', async () => {