Skip to content

Commit

Permalink
chore: add some ut
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp committed Jan 7, 2025
1 parent 93d6bf2 commit f2cb4f4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions backend/src/prisma.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { Test, TestingModule } from "@nestjs/testing";
import { PrismaService } from "./prisma.service";
import { Logger } from "@nestjs/common";

describe("PrismaService", () => {
let service: PrismaService;

beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [PrismaService],
}).compile();

service = module.get<PrismaService>(PrismaService);
});

afterEach(async () => {
await service.$disconnect();
});

it("should be defined", () => {
expect(service).toBeDefined();
});

});

0 comments on commit f2cb4f4

Please sign in to comment.