adding npm workspaces (#12)

This commit was merged in pull request #12.
This commit is contained in:
2024-05-21 18:19:37 -05:00
committed by GitHub
parent 4fc0401ddf
commit 3b68021d93
14 changed files with 14109 additions and 37 deletions

View File

@@ -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);

View File

@@ -5,6 +5,6 @@ import { AppService } from './app.service';
@Module({
imports: [],
controllers: [AppController],
providers: [AppService],
providers: [AppService]
})
export class AppModule {}

View File

@@ -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;
}