refactor(server): folder structure (#5573)

This commit is contained in:
liuyi
2024-01-12 04:18:39 +00:00
parent d6f65ea414
commit 89b5c96d25
113 changed files with 453 additions and 482 deletions

View File

@@ -7,9 +7,8 @@ import { PrismaClient } from '@prisma/client';
import ava, { type TestFn } from 'ava';
import { AppModule } from '../src/app';
import { MailService } from '../src/modules/auth/mailer';
import { MailService } from '../src/fundamentals/mailer';
import { AuthService } from '../src/modules/auth/service';
import { PrismaService } from '../src/prisma';
import {
acceptInviteById,
createTestingApp,
@@ -33,7 +32,7 @@ test.beforeEach(async t => {
imports: [AppModule],
});
t.context.app = app;
t.context.client = app.get(PrismaService);
t.context.client = app.get(PrismaClient);
t.context.auth = app.get(AuthService);
t.context.mail = app.get(MailService);
});