adding npm workspaces (#12)
This commit was merged in pull request #12.
This commit is contained in:
@@ -8,7 +8,7 @@ describe('AppController', () => {
|
||||
beforeEach(async () => {
|
||||
const app: TestingModule = await Test.createTestingModule({
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
providers: [AppService]
|
||||
}).compile();
|
||||
|
||||
appController = app.get<AppController>(AppController);
|
||||
|
||||
@@ -5,6 +5,6 @@ import { AppService } from './app.service';
|
||||
@Module({
|
||||
imports: [],
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
providers: [AppService]
|
||||
})
|
||||
export class AppModule {}
|
||||
|
||||
@@ -5,7 +5,7 @@ import { AppModule } from './app.module';
|
||||
export async function createApp(): Promise<INestApplication> {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
app.setGlobalPrefix('api');
|
||||
|
||||
|
||||
await app.init();
|
||||
return app;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user