There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(server): missing dependency in sync app (#4465)
LongYinan7b5157aa8936
diff --git a/apps/server/src/app.ts b/apps/server/src/app.tsindex 25cecb3a88..de7954ba06 100644--- a/apps/server/src/app.ts+++ b/apps/server/src/app.ts@@ -4,6 +4,7 @@ import { AppController } from './app.controller';import { ConfigModule } from './config';import { MetricsModule } from './metrics';import { BusinessModules } from './modules';+import { AuthModule } from './modules/auth';import { PrismaModule } from './prisma';import { SessionModule } from './session';import { StorageModule } from './storage';@@ -17,6 +18,7 @@ import { RateLimiterModule } from './throttler';MetricsModule,SessionModule,RateLimiterModule,+ AuthModule,...BusinessModules,],controllers: [AppController],diff --git a/apps/server/tests/sync.spec.ts b/apps/server/tests/sync.spec.tsnew file mode 100644index 0000000000..fd15d0739d--- /dev/null+++ b/apps/server/tests/sync.spec.ts@@ -0,0 +1,16 @@+import { Test } from '@nestjs/testing';+import test from 'ava';++test('should be able to bootstrap sync server', async t => {+ // set env before import+ process.env.SERVER_FLAVOR = 'sync';+ const { AppModule } = await import('../src/app');+ await t.notThrowsAsync(async () => {+ const module = await Test.createTestingModule({+ imports: [AppModule],+ }).compile();+ const app = module.createNestApplication();+ await app.close();+ });+ process.env.SERVER_FLAVOR = '';+});