Rename source folders
All checks were successful
forgejo/Procyon/seedling/pipeline/head This commit looks good
All checks were successful
forgejo/Procyon/seedling/pipeline/head This commit looks good
This commit is contained in:
parent
2398a7c8c9
commit
da23b80647
23 changed files with 4 additions and 4 deletions
26
source/rest/test/app.e2e-spec.ts
Normal file
26
source/rest/test/app.e2e-spec.ts
Normal 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();
|
||||
});
|
||||
});
|
14
source/rest/test/jest.config-e2e.js
Normal file
14
source/rest/test/jest.config-e2e.js
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue