Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix: component testing types with moduleresolution: bundler (#26551)
Max Schmitt22dacdb75f22
diff --git a/packages/playwright-ct-core/index.d.ts b/packages/playwright-ct-core/index.d.tsindex e7717c9b68..90789c02a7 100644--- a/packages/playwright-ct-core/index.d.ts+++ b/packages/playwright-ct-core/index.d.ts@@ -23,7 +23,7 @@ import type {PlaywrightWorkerOptions,Locator,} from '@playwright/test';-import type { JsonObject } from '@playwright/experimental-ct-core/types/component';+import type { JsonObject } from './types/component';import type { InlineConfig } from 'vite';export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {diff --git a/packages/playwright-ct-core/package.json b/packages/playwright-ct-core/package.jsonindex 593f5771dc..f4291f7947 100644--- a/packages/playwright-ct-core/package.json+++ b/packages/playwright-ct-core/package.json@@ -18,7 +18,10 @@},"./cli": "./cli.js","./lib/mount": "./lib/mount.js",- "./lib/vitePlugin": "./lib/vitePlugin.js"+ "./lib/vitePlugin": "./lib/vitePlugin.js",+ "./types/component": {+ "types": "./types/component.d.ts"+ }},"dependencies": {"playwright-core": "1.38.0-next",