mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚚 Add slash to typescript path shortcuts
This commit is contained in:
parent
5b658984a5
commit
0706541546
176 changed files with 733 additions and 733 deletions
|
|
@ -3,9 +3,9 @@
|
|||
*/
|
||||
import { afterAll, describe, expect, test } from "bun:test";
|
||||
import { config } from "config-manager";
|
||||
import { getTestUsers, sendTestRequest, wrapRelativeUrl } from "~tests/utils";
|
||||
import type { Account as APIAccount } from "~types/mastodon/account";
|
||||
import type { Relationship as APIRelationship } from "~types/mastodon/relationship";
|
||||
import { getTestUsers, sendTestRequest, wrapRelativeUrl } from "~/tests/utils";
|
||||
import type { Account as APIAccount } from "~/types/mastodon/account";
|
||||
import type { Relationship as APIRelationship } from "~/types/mastodon/relationship";
|
||||
|
||||
const base_url = config.http.base_url;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
*/
|
||||
import { afterAll, describe, expect, test } from "bun:test";
|
||||
import { config } from "config-manager";
|
||||
import { getTestUsers, sendTestRequest, wrapRelativeUrl } from "~tests/utils";
|
||||
import type { AsyncAttachment as APIAsyncAttachment } from "~types/mastodon/async_attachment";
|
||||
import type { Context as APIContext } from "~types/mastodon/context";
|
||||
import type { Status as APIStatus } from "~types/mastodon/status";
|
||||
import { getTestUsers, sendTestRequest, wrapRelativeUrl } from "~/tests/utils";
|
||||
import type { AsyncAttachment as APIAsyncAttachment } from "~/types/mastodon/async_attachment";
|
||||
import type { Context as APIContext } from "~/types/mastodon/context";
|
||||
import type { Status as APIStatus } from "~/types/mastodon/status";
|
||||
|
||||
const base_url = config.http.base_url;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { describe, expect, it } from "bun:test";
|
||||
import { checkIfOauthIsValid } from "@oauth";
|
||||
import type { Application } from "~database/entities/Application";
|
||||
import { checkIfOauthIsValid } from "@/oauth";
|
||||
import type { Application } from "~/database/entities/Application";
|
||||
|
||||
describe("checkIfOauthIsValid", () => {
|
||||
it("should return true when routeScopes and application.scopes are empty", () => {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
* @deprecated
|
||||
*/
|
||||
import { afterAll, describe, expect, test } from "bun:test";
|
||||
import { config } from "~packages/config-manager";
|
||||
import type { Application as APIApplication } from "~types/mastodon/application";
|
||||
import type { Token as APIToken } from "~types/mastodon/token";
|
||||
import { config } from "~/packages/config-manager";
|
||||
import type { Application as APIApplication } from "~/types/mastodon/application";
|
||||
import type { Token as APIToken } from "~/types/mastodon/token";
|
||||
import { getTestUsers, sendTestRequest, wrapRelativeUrl } from "./utils";
|
||||
|
||||
const base_url = config.http.base_url;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { setupDatabase } from "~drizzle/db";
|
||||
import { setupDatabase } from "~/drizzle/db";
|
||||
import { deleteOldTestUsers } from "./utils";
|
||||
|
||||
await setupDatabase();
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import { randomBytes } from "node:crypto";
|
||||
import { consoleLogger } from "@loggers";
|
||||
import { consoleLogger } from "@/loggers";
|
||||
import { asc, inArray, like } from "drizzle-orm";
|
||||
import type { Status } from "~database/entities/Status";
|
||||
import { db } from "~drizzle/db";
|
||||
import { setupDatabase } from "~drizzle/db";
|
||||
import { Notes, Tokens, Users } from "~drizzle/schema";
|
||||
import { app } from "~index";
|
||||
import { Note } from "~packages/database-interface/note";
|
||||
import { User } from "~packages/database-interface/user";
|
||||
import type { Status } from "~/database/entities/Status";
|
||||
import { db } from "~/drizzle/db";
|
||||
import { setupDatabase } from "~/drizzle/db";
|
||||
import { Notes, Tokens, Users } from "~/drizzle/schema";
|
||||
import { app } from "~/index";
|
||||
import { Note } from "~/packages/database-interface/note";
|
||||
import { User } from "~/packages/database-interface/user";
|
||||
|
||||
await setupDatabase(consoleLogger);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue