Update playwright tests for esm compat

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2026-02-05 12:30:58 +00:00
parent 94b1bfb590
commit 41a0e5dd18
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
2 changed files with 8 additions and 0 deletions

View File

@ -8,9 +8,13 @@ Please see LICENSE files in the repository root for full details.
import path from "path";
import { readFile } from "node:fs/promises";
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
import { expect, test } from "../../element-web-test";
const __dirname = dirname(fileURLToPath(import.meta.url));
test.describe("migration", { tag: "@no-webkit" }, function () {
test.use({
displayName: "Alice",

View File

@ -11,6 +11,10 @@ import express from "express";
import { type AddressInfo } from "net";
import { type TestInfo } from "@playwright/test";
import { randB64Bytes } from "@element-hq/element-web-playwright-common/lib/utils/rand.js";
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
export class OAuthServer {
private server?: http.Server;