fix(server): node imports order (#5583)

This commit is contained in:
liuyi
2024-01-14 05:47:56 +00:00
parent 18907ebe57
commit 4c49b62ab7
16 changed files with 109 additions and 101 deletions
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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';
+1 -1
View File
@@ -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],
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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,