This library provides a set of general services, methods and utilities for bootstrapping the application. It's configuring default interceptors, swagger, http server, security, etc...
Useful to do not repeat yourself everytime, and shouldn't be used outside Softkit ecosystem
yarn add @softkit/bootstrap
import { PlatformAppModule } from './your-app.module';
import { bootstrapBaseWebApp } from '@softkit/bootstrap';
void bootstrapBaseWebApp(PlatformAppModule);
import { bootstrapBaseWebApp } from '@softkit/bootstrap';
describe('auth e2e test', () => {
let app: NestFastifyApplication;
beforeAll(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
imports: [YourAppModule],
}).compile();
app = await bootstrapBaseWebApp(moduleFixture, PlatformAppModule);
});
});