fix: api v2 routing form responses flaky tests (#21150)
This commit is contained in:
1 parent
a4134aa5a3
commit
21d6bf1fca
4 files changed
+52
-36
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { PrismaReadService } from "@/modules/prisma/prisma-read.service";
|
||||
import { PrismaWriteService } from "@/modules/prisma/prisma-write.service";
|
||||
import { TestingModule } from "@nestjs/testing";
|
||||
import { Prisma, App_RoutingForms_Form } from "@prisma/client";
|
||||
import { Prisma, App_RoutingForms_Form, App_RoutingForms_FormResponse } from "@prisma/client";
|
||||
|
||||
export class RoutingFormsRepositoryFixture {
|
||||
private prismaReadClient: PrismaReadService["prisma"];
|
||||
@@ -23,4 +23,10 @@ export class RoutingFormsRepositoryFixture {
|
||||
async delete(routingFormId: App_RoutingForms_Form["id"]) {
|
||||
return this.prismaWriteClient.app_RoutingForms_Form.delete({ where: { id: routingFormId } });
|
||||
}
|
||||
|
||||
async deleteResponse(routingFormResponseId: App_RoutingForms_FormResponse["id"]) {
|
||||
return this.prismaWriteClient.app_RoutingForms_FormResponse.delete({
|
||||
where: { id: routingFormResponseId },
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user