mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
refactor(server): folder structure (#5573)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user