From fe36e23dbe2b457cf1bf5bb9d6b2701bd4f8cab2 Mon Sep 17 00:00:00 2001 From: gmegidish Date: Mon, 21 Sep 2026 11:55:02 +0200 Subject: [PATCH] feat: re-export Role type from mobilewright and @mobilewright/test --- packages/mobilewright/src/index.ts | 3 +++ packages/test/src/index.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/mobilewright/src/index.ts b/packages/mobilewright/src/index.ts index 9633d25..8ebcc25 100644 --- a/packages/mobilewright/src/index.ts +++ b/packages/mobilewright/src/index.ts @@ -8,6 +8,9 @@ export { expect } from '@mobilewright/core'; // drop-in Playwright Page/Locator; Page/WebLocator remain as back-compat aliases. export { Device, Screen, Locator, MobileWebViewPage, MobileWebViewLocator, Page, WebLocator } from '@mobilewright/core'; +// The union of roles accepted by getByRole() — for typing helpers and page objects. +export type { Role } from '@mobilewright/core'; + // Configuration export { defineConfig, loadConfig, type MobilewrightConfig, type MobilewrightProjectConfig, type MobilewrightUseOptions } from './config.js'; diff --git a/packages/test/src/index.ts b/packages/test/src/index.ts index efca9c5..d3efe68 100644 --- a/packages/test/src/index.ts +++ b/packages/test/src/index.ts @@ -1 +1,2 @@ export { test, expect } from './fixtures.js'; +export type { Role } from '@mobilewright/core';