@@ -5,7 +5,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
55import { PRISMA_CLIENT_TOKEN } from '../../../src/modules/prisma/prisma.config.js' ;
66import { CatsService } from '../cats.service.js' ;
77
8- import type { Cat } from '../schemas/cat.schema.js' ;
8+ import type { $ Cat } from '../schemas/cat.schema.js' ;
99
1010describe ( 'CatsService' , ( ) => {
1111 let catsService : CatsService ;
@@ -29,7 +29,7 @@ describe('CatsService', () => {
2929
3030 describe ( 'create' , ( ) => {
3131 it ( 'should create a new cat successfully' , async ( ) => {
32- const mockCat : Omit < Cat , '_id' > = {
32+ const mockCat : Omit < $ Cat, '_id' > = {
3333 age : 3 ,
3434 name : 'Whiskers'
3535 } ;
@@ -46,7 +46,7 @@ describe('CatsService', () => {
4646 } ) ;
4747
4848 it ( 'should throw InternalServerErrorException when creation fails' , async ( ) => {
49- const mockCat : Omit < Cat , '_id' > = {
49+ const mockCat : Omit < $ Cat, '_id' > = {
5050 age : 3 ,
5151 name : 'Whiskers'
5252 } ;
@@ -57,7 +57,7 @@ describe('CatsService', () => {
5757
5858 describe ( 'findAll' , ( ) => {
5959 it ( 'should return all cats successfully' , async ( ) => {
60- const mockCats : Cat [ ] = [
60+ const mockCats : $ Cat[ ] = [
6161 { _id : '1' , age : 3 , name : 'Whiskers' } ,
6262 { _id : '2' , age : 2 , name : 'Mittens' }
6363 ] ;
0 commit comments