- Updated biome.json to include "graphql.d.ts" in the ignored files list. - Updated subproject commit reference in epess-database to the latest version. - Removed unused script from package.json and streamlined module file extensions in tsconfig.json. - Consolidated exclude patterns in tsconfig.build.json for clarity. - Refactored imports across multiple schema files for consistency and improved readability. - Enhanced various schema files by ensuring proper import order and removing redundant code. - Improved error handling and data integrity checks in several service and schema files.
22 lines
597 B
TypeScript
22 lines
597 B
TypeScript
import { INestApplication } from '@nestjs/common'
|
|
import { Test, TestingModule } from '@nestjs/testing'
|
|
import * as request from 'supertest'
|
|
import { AppModule } from './../src/app.module'
|
|
|
|
describe('AppController (e2e)', () => {
|
|
let app: INestApplication
|
|
|
|
beforeEach(async () => {
|
|
const moduleFixture: TestingModule = await Test.createTestingModule({
|
|
imports: [AppModule],
|
|
}).compile()
|
|
|
|
app = moduleFixture.createNestApplication()
|
|
await app.init()
|
|
})
|
|
|
|
it('/ (GET)', () => {
|
|
return request(app.getHttpServer()).get('/').expect(200).expect('Hello World!')
|
|
})
|
|
})
|