[QRQC_2] No implicitAny in twenty-server (#12075)
# Introduction Following https://github.com/twentyhq/twenty/pull/12068 Related with https://github.com/twentyhq/core-team-issues/issues/975 We're enabling `noImplicitAny` handled few use case manually, added a `ts-expect-error` to the others, we should plan to handle them in the future
This commit is contained in:
@ -63,10 +63,12 @@ describe('roles permissions', () => {
|
||||
.send(query);
|
||||
|
||||
adminRoleId = resp.body.data.getRoles.find(
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
(role) => role.label === 'Admin',
|
||||
).id;
|
||||
|
||||
guestRoleId = resp.body.data.getRoles.find(
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
(role) => role.label === 'Guest',
|
||||
).id;
|
||||
});
|
||||
@ -231,10 +233,12 @@ describe('roles permissions', () => {
|
||||
.send(getRolesQuery);
|
||||
|
||||
const memberRoleId = resp.body.data.getRoles.find(
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
(role) => role.label === 'Member',
|
||||
).id;
|
||||
|
||||
const guestRoleId = resp.body.data.getRoles.find(
|
||||
// @ts-expect-error legacy noImplicitAny
|
||||
(role) => role.label === 'Guest',
|
||||
).id;
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ import { PermissionsExceptionMessage } from 'src/engine/metadata-modules/permiss
|
||||
const client = request(`http://localhost:${APP_PORT}`);
|
||||
|
||||
describe('Security permissions', () => {
|
||||
let originalWorkspaceState;
|
||||
let originalWorkspaceState: Record<string, unknown>;
|
||||
|
||||
beforeAll(async () => {
|
||||
// Store original workspace state
|
||||
|
||||
@ -11,7 +11,7 @@ import { PermissionsExceptionMessage } from 'src/engine/metadata-modules/permiss
|
||||
const client = request(`http://localhost:${APP_PORT}`);
|
||||
|
||||
describe('workspace permissions', () => {
|
||||
let originalWorkspaceState;
|
||||
let originalWorkspaceState: Record<string, unknown>;
|
||||
|
||||
beforeAll(async () => {
|
||||
// Store original workspace state
|
||||
|
||||
Reference in New Issue
Block a user