Installation du module Nest Prisma
This commit is contained in:
18
server/src/prisma/prisma.service.spec.ts
Normal file
18
server/src/prisma/prisma.service.spec.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing'
|
||||
import { PrismaService } from './prisma.service'
|
||||
|
||||
describe('PrismaService', () => {
|
||||
let service: PrismaService
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [PrismaService],
|
||||
}).compile()
|
||||
|
||||
service = module.get<PrismaService>(PrismaService)
|
||||
})
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined()
|
||||
})
|
||||
})
|
4
server/src/prisma/prisma.service.ts
Normal file
4
server/src/prisma/prisma.service.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common'
|
||||
|
||||
@Injectable()
|
||||
export class PrismaService {}
|
Reference in New Issue
Block a user