fix(matrix): also pin test imports to matrix-js-sdk subpath

Two companion test files still used the bare matrix-js-sdk import while
the production code in event-helpers.ts had been migrated to the
matrix-js-sdk/lib/matrix.js subpath:

- extensions/matrix/src/matrix/sdk/event-helpers.test.ts (flagged by greptile P2)
- extensions/matrix/src/matrix/client/file-sync-store.test.ts (found via grep
  while addressing the P2)

After this commit, all matrix-js-sdk imports across extensions/matrix/src
go through the same subpath. Verified with:

  grep -rn 'from "matrix-js-sdk"' extensions/matrix/src/ | grep -v lib

returns no results.

Addresses greptile P2 finding on PR #68498.
This commit is contained in:
masatohoshino
2026-04-18 10:12:09 +00:00
committed by Gustavo Madeira Santana
parent 853bfe3e84
commit 86ee4fd9d8
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import type { ISyncResponse } from "matrix-js-sdk";
import type { ISyncResponse } from "matrix-js-sdk/lib/matrix.js";
import * as jsonStore from "openclaw/plugin-sdk/json-store";
import { afterEach, describe, expect, it, vi } from "vitest";
import { FileBackedMatrixSyncStore } from "./file-sync-store.js";

View File

@@ -1,4 +1,4 @@
import type { MatrixEvent } from "matrix-js-sdk";
import type { MatrixEvent } from "matrix-js-sdk/lib/matrix.js";
import { describe, expect, it } from "vitest";
import { buildHttpError, matrixEventToRaw, parseMxc } from "./event-helpers.js";