mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
1d680de87e
I thought making it a separate would be easier to manage, but it's actually not. Previous setup was also downloading packages from npm on every CI run.
23 lines
639 B
TypeScript
23 lines
639 B
TypeScript
import { expect, beforeAll, describe, it } from "vitest";
|
|
import { Test, TestingModule } from "@nestjs/testing";
|
|
import { AppController } from "./app.controller";
|
|
import { AppService } from "./app.service";
|
|
|
|
describe("AppController", () => {
|
|
let app: TestingModule;
|
|
|
|
beforeAll(async () => {
|
|
app = await Test.createTestingModule({
|
|
controllers: [AppController],
|
|
providers: [AppService],
|
|
}).compile();
|
|
});
|
|
|
|
describe("getHello", () => {
|
|
it('should return "Hello World!"', () => {
|
|
const appController = app.get(AppController);
|
|
expect(appController.getHello()).toBe("Hello World!");
|
|
});
|
|
});
|
|
});
|