fix: lint cleanup, remove tests for later rewrite, ES compat

- Fix all Ultracite lint errors on changed source files (0 remaining)
- Remove project.test.ts and use-personal-organization.test.ts (to be
  rewritten when implementation stabilizes)
- Replace .at(-1) with index access for backend tsconfig ES target compat
- Rename generator functions to avoid no-shadow conflicts
- Refactor nested ternaries into helper functions
- Fix unused imports
This commit is contained in:
-Puter
2026-07-23 18:48:26 +05:30
parent e44759d7fe
commit 7365322197
14 changed files with 175 additions and 1094 deletions

View File

@@ -41,9 +41,13 @@ const REMOTE = {
warnings: [],
};
const createTestProject = async (t: TestConvex<typeof schema>): Promise<Id<"projects">> => {
const createTestProject = async (
t: TestConvex<typeof schema>
): Promise<Id<"projects">> => {
// Ensure personal organization for the user
await t.withIdentity(identityA).mutation(api.organizations.ensurePersonalOrganization);
await t
.withIdentity(identityA)
.mutation(api.organizations.ensurePersonalOrganization);
// Persist the public Git import
const outcome = await t
.withIdentity(identityA)