All checks were successful
ci / ci (22) (push) Successful in 11m57s
- Added "check-types" script to package.json for type checking in both api and web apps. - Updated ESLint configuration to use a shared tooling package for consistent linting rules. - Refactored TypeScript configurations to extend from shared tooling configurations. - Improved code formatting and consistency in various files, including Vue components and TypeScript files. - Introduced CI workflow for automated linting, formatting checks, and type checking on push and pull request events. - Cleaned up unnecessary dependencies and updated existing ones for better performance and maintainability.
23 lines
648 B
TypeScript
23 lines
648 B
TypeScript
import { Test, TestingModule } from "@nestjs/testing";
|
|
import { INestApplication } from "@nestjs/common";
|
|
import request from "supertest";
|
|
import { App } from "supertest/types";
|
|
import { AppModule } from "./../src/app.module";
|
|
|
|
describe("AppController (e2e)", () => {
|
|
let app: INestApplication<App>;
|
|
|
|
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!");
|
|
});
|
|
});
|