refactor: 🚚 Add slash to typescript path shortcuts

This commit is contained in:
Jesse Wierzbinski 2024-05-28 14:59:49 -10:00
parent 5b658984a5
commit 0706541546
No known key found for this signature in database
176 changed files with 733 additions and 733 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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", () => {

View file

@ -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;

View file

@ -1,4 +1,4 @@
import { setupDatabase } from "~drizzle/db";
import { setupDatabase } from "~/drizzle/db";
import { deleteOldTestUsers } from "./utils";
await setupDatabase();

View file

@ -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);