Skip to content

Commit 1e73093

Browse files
committed
Remove exports from playwright-common package
1 parent 4ed7187 commit 1e73093

3 files changed

Lines changed: 5 additions & 15 deletions

File tree

.github/workflows/reusable-playwright-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
index-files: '["index.html"]'
5757

5858
- name: Run Playwright tests
59-
run: yarn playwright test --reporter=html,@element-hq/element-web-playwright-common/stale-screenshot-reporter
59+
run: yarn playwright test --reporter=html,@element-hq/element-web-playwright-common/lib/stale-screenshot-reporter.js
6060

6161
- name: Upload blob report to GitHub Actions Artifacts
6262
if: always()

packages/element-web-playwright-common/package.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,8 @@
1212
"engines": {
1313
"node": ">=20.0.0"
1414
},
15-
"exports": {
16-
".": {
17-
"import": "./lib/index.js",
18-
"require": "./lib/index.js",
19-
"types": "./lib/index.d.ts"
20-
},
21-
"./stale-screenshot-reporter": {
22-
"import": "./lib/stale-screenshot-reporter.js",
23-
"require": "./lib/stale-screenshot-reporter.js",
24-
"types": "./lib/stale-screenshot-reporter.d.ts"
25-
}
26-
},
15+
"main": "lib/index.js",
16+
"types": "lib/index.d.ts",
2717
"bin": {
2818
"playwright-screenshots": "playwright-screenshots.sh"
2919
},

packages/element-web-playwright-common/src/testcontainers/HomeserverContainer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
55
Please see LICENSE files in the repository root for full details.
66
*/
77

8-
import { type AbstractStartedContainer, type GenericContainer } from "testcontainers";
8+
import { type AbstractStartedContainer, type TestContainer } from "testcontainers";
99
import { type APIRequestContext, type TestInfo } from "@playwright/test";
1010

1111
import { type StartedMatrixAuthenticationServiceContainer } from "./mas";
@@ -41,7 +41,7 @@ export interface HomeserverInstance {
4141
setThreepid(userId: string, medium: string, address: string): Promise<void>;
4242
}
4343

44-
export interface HomeserverContainer<Config> extends GenericContainer {
44+
export interface HomeserverContainer<Config> extends TestContainer {
4545
/**
4646
* Set a configuration field in the config
4747
* @param key - the key to set

0 commit comments

Comments
 (0)