Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
duplixx committed Oct 24, 2024
1 parent 1805f17 commit a99866d
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion config/vitestSetup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// FAIL LOUDLY on unhandled promise rejections / errors
process.on("unhandledRejection", (reason) => {
// eslint-disable-next-line no-console
console.log("FAILED TO HANDLE PROMISE REJECTION");
throw reason;
});
Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/Mutation/addEventAttendee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const addEventAttendee: MutationResolvers["addEventAttendee"] = async (
},
{ new: true },
);

/*istanbul ignore next*/
if (!updatedUser) {
throw new errors.NotFoundError(
requestContext.translate(USER_NOT_FOUND_ERROR.MESSAGE),
Expand Down
2 changes: 1 addition & 1 deletion src/resolvers/Mutation/updateAgendaCategory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const updateAgendaCategory: MutationResolvers["updateAgendaCategory"] =
{
$set: {
updatedBy: context.userId,
// eslint-disable-next-line

...(args.input as UpdateAgendaCategoryInput),
},
},
Expand Down
1 change: 0 additions & 1 deletion src/setup/superAdmin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import inquirer from "inquirer";
import { isValidEmail } from "./isValidEmail";

Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/userAndOrg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import type {
import { AppUserProfile, Organization, User } from "../../src/models";

export type TestOrganizationType =
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(InterfaceOrganization & Document<any, any, InterfaceOrganization>) | null;
| (InterfaceOrganization & Document<any, any, InterfaceOrganization>)
| null;

export type TestUserType =
| (InterfaceUser & Document<any, any, InterfaceUser>)
Expand Down
1 change: 0 additions & 1 deletion tests/resolvers/UserTag/childTags.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import "dotenv/config";
import { GraphQLError } from "graphql";
import type mongoose from "mongoose";
Expand Down
1 change: 0 additions & 1 deletion tests/resolvers/UserTag/usersAssignedTo.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import "dotenv/config";
import {
parseCursor,
Expand Down
1 change: 0 additions & 1 deletion tests/resolvers/middleware/currentUserExists.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import "dotenv/config";
import type mongoose from "mongoose";
import { Types } from "mongoose";
Expand Down

0 comments on commit a99866d

Please sign in to comment.