Fixup paths

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2026-02-24 21:27:03 +00:00
parent 848f664fc3
commit b8509d249b
16 changed files with 88 additions and 71 deletions
@@ -6,6 +6,7 @@ Please see LICENSE files in the repository root for full details.
*/
import { readFile } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import { type Page } from "@playwright/test";
import type { EventType, Preset } from "matrix-js-sdk/src/matrix";
@@ -19,7 +20,7 @@ import { isDendrite } from "../../plugins/homeserver/dendrite";
// The fake call app does *just* enough to convince Element Web that a call is ongoing
// and functions like PiP work. It does not actually do anything though, to limit the
// surface we test.
const widgetApi = readFile(require.resolve("matrix-widget-api/dist/api.min.js"), "utf-8");
const widgetApi = readFile(fileURLToPath(import.meta.resolve("matrix-widget-api/dist/api.min.js")), "utf-8");
const fakeCallClient = readFile("playwright/sample-files/fake-element-call.html", "utf-8");
function assertCommonCallParameters(
+2 -2
View File
@@ -12,7 +12,7 @@
"include": [
"**/*.ts",
"../src/@types/matrix-js-sdk.d.ts",
"../node_modules/matrix-js-sdk/src/@types/*.d.ts",
"../node_modules/matrix-js-sdk/node_modules/@matrix-org/olm/index.d.ts"
"../../../node_modules/matrix-js-sdk/src/@types/*.d.ts",
"../../../node_modules/matrix-js-sdk/node_modules/@matrix-org/olm/index.d.ts"
]
}