Rename source folders
All checks were successful
forgejo/Procyon/seedling/pipeline/head This commit looks good

This commit is contained in:
Roman Jaroš 2023-10-24 20:43:21 +02:00
parent 2398a7c8c9
commit da23b80647
23 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,26 @@
// @ts-nocheck
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import * as request from 'supertest';
import { AppModule } from '../src/app.module';
describe('AppController (e2e)', () => {
let app: INestApplication;
beforeEach(async () => {
const moduleRef: TestingModule = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleRef.createNestApplication();
await app.init();
});
it('/health-check (GET)', () => {
return request.agent(app.getHttpServer()).get('/health-check').expect(200).expect('OK');
});
afterAll(async () => {
await app.close();
});
});

View file

@ -0,0 +1,14 @@
/** @type {import('jest').Config} */
const config = {
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: '.',
testEnvironment: 'node',
testRegex: '.e2e-spec.ts$',
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
moduleNameMapper: { '^uuid$': 'uuid' },
};
module.exports = config;