chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts.
This commit is contained in:
@@ -9,9 +9,9 @@ vi.mock("../src/web/media.js", () => ({
|
||||
})),
|
||||
}));
|
||||
|
||||
import type { WebInboundMessage } from "../src/web/inbound.js";
|
||||
import { defaultRuntime } from "../src/runtime.js";
|
||||
import { deliverWebReply } from "../src/web/auto-reply.js";
|
||||
import type { WebInboundMessage } from "../src/web/inbound.js";
|
||||
|
||||
const noopLogger = {
|
||||
info: vi.fn(),
|
||||
|
||||
@@ -6,8 +6,8 @@ import net from "node:net";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { afterAll, describe, expect, it } from "vitest";
|
||||
import { loadOrCreateDeviceIdentity } from "../src/infra/device-identity.js";
|
||||
import { GatewayClient } from "../src/gateway/client.js";
|
||||
import { loadOrCreateDeviceIdentity } from "../src/infra/device-identity.js";
|
||||
import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../src/utils/message-channel.js";
|
||||
|
||||
type GatewayInstance = {
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { expect } from "vitest";
|
||||
|
||||
import type { MsgContext } from "../../src/auto-reply/templating.js";
|
||||
import { normalizeChatType } from "../../src/channels/chat-type.js";
|
||||
import { resolveConversationLabel } from "../../src/channels/conversation-label.js";
|
||||
import { validateSenderIdentity } from "../../src/channels/sender-identity.js";
|
||||
import type { MsgContext } from "../../src/auto-reply/templating.js";
|
||||
|
||||
export function expectInboundContextContract(ctx: MsgContext) {
|
||||
expect(validateSenderIdentity(ctx)).toEqual([]);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { describe, it } from "vitest";
|
||||
|
||||
import type { MsgContext } from "../src/auto-reply/templating.js";
|
||||
import { finalizeInboundContext } from "../src/auto-reply/reply/inbound-context.js";
|
||||
import { expectInboundContextContract } from "./helpers/inbound-contract.js";
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import type { OpenClawConfig } from "../src/config/config.js";
|
||||
import type { MsgContext } from "../src/auto-reply/templating.js";
|
||||
import type { OpenClawConfig } from "../src/config/config.js";
|
||||
|
||||
const makeTempDir = async (prefix: string) => await fs.mkdtemp(path.join(os.tmpdir(), prefix));
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { EventEmitter } from "node:events";
|
||||
|
||||
import { vi } from "vitest";
|
||||
|
||||
export type MockBaileysSocket = {
|
||||
|
||||
@@ -2,9 +2,7 @@ import { randomUUID } from "node:crypto";
|
||||
import fs from "node:fs/promises";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { GatewayClient } from "../src/gateway/client.js";
|
||||
import { startGatewayServer } from "../src/gateway/server.js";
|
||||
import { getDeterministicFreePortBlock } from "../src/test-utils/ports.js";
|
||||
|
||||
Reference in New Issue
Block a user