mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
fix(server): node imports order (#5583)
This commit is contained in:
@@ -9,7 +9,7 @@ import ava, { type TestFn } from 'ava';
|
||||
import type { Express } from 'express';
|
||||
import request from 'supertest';
|
||||
|
||||
import { AppModule } from '../src/app';
|
||||
import { AppModule } from '../src/app.module';
|
||||
import { FeatureManagementService } from '../src/modules/features';
|
||||
import { createTestingApp } from './utils';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import { type User } from '@prisma/client';
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
import ava, { type TestFn } from 'ava';
|
||||
|
||||
import { AppModule } from '../src/app';
|
||||
import { AppModule } from '../src/app.module';
|
||||
import { MailService } from '../src/fundamentals/mailer';
|
||||
import { FeatureKind, FeatureManagementService } from '../src/modules/features';
|
||||
import { Quotas } from '../src/modules/quota';
|
||||
|
||||
@@ -4,7 +4,7 @@ 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');
|
||||
const { AppModule } = await import('../src/app.module');
|
||||
await t.notThrowsAsync(async () => {
|
||||
const module = await Test.createTestingModule({
|
||||
imports: [AppModule],
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { INestApplication } from '@nestjs/common';
|
||||
import test from 'ava';
|
||||
import request from 'supertest';
|
||||
|
||||
import { AppModule } from '../src/app';
|
||||
import { AppModule } from '../src/app.module';
|
||||
import { createTestingApp, currentUser, signUp } from './utils';
|
||||
|
||||
let app: INestApplication;
|
||||
|
||||
@@ -4,7 +4,7 @@ import { Test, TestingModuleBuilder } from '@nestjs/testing';
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.mjs';
|
||||
|
||||
import { AppModule, FunctionalityModules } from '../../src/app';
|
||||
import { AppModule, FunctionalityModules } from '../../src/app.module';
|
||||
import { UserFeaturesInit1698652531198 } from '../../src/data/migrations/1698652531198-user-features-init';
|
||||
import { GqlModule } from '../../src/fundamentals/graphql';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import type { INestApplication } from '@nestjs/common';
|
||||
import test from 'ava';
|
||||
import request from 'supertest';
|
||||
|
||||
import { AppModule } from '../src/app';
|
||||
import { AppModule } from '../src/app.module';
|
||||
import { FeatureManagementService, FeatureType } from '../src/modules/features';
|
||||
import { QuotaService, QuotaType } from '../src/modules/quota';
|
||||
import {
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { INestApplication } from '@nestjs/common';
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
import ava, { type TestFn } from 'ava';
|
||||
|
||||
import { AppModule } from '../src/app';
|
||||
import { AppModule } from '../src/app.module';
|
||||
import { MailService } from '../src/fundamentals/mailer';
|
||||
import { AuthService } from '../src/modules/auth/service';
|
||||
import {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { PrismaClient } from '@prisma/client';
|
||||
import ava, { type TestFn } from 'ava';
|
||||
import request from 'supertest';
|
||||
|
||||
import { AppModule } from '../src/app';
|
||||
import { AppModule } from '../src/app.module';
|
||||
import {
|
||||
acceptInviteById,
|
||||
createTestingApp,
|
||||
|
||||
Reference in New Issue
Block a user