fix: component testing types with moduleresolution: bundler (#26551)

Fixes https://github.com/microsoft/playwright/issues/24581
This commit is contained in:
Max Schmitt 2023-08-18 22:44:05 +02:00 committed by GitHub
parent c344fce7b6
commit 22dacdb75f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import type {
PlaywrightWorkerOptions, PlaywrightWorkerOptions,
Locator, Locator,
} from '@playwright/test'; } from '@playwright/test';
import type { JsonObject } from '@playwright/experimental-ct-core/types/component'; import type { JsonObject } from './types/component';
import type { InlineConfig } from 'vite'; import type { InlineConfig } from 'vite';
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & { export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {

View File

@ -18,7 +18,10 @@
}, },
"./cli": "./cli.js", "./cli": "./cli.js",
"./lib/mount": "./lib/mount.js", "./lib/mount": "./lib/mount.js",
"./lib/vitePlugin": "./lib/vitePlugin.js" "./lib/vitePlugin": "./lib/vitePlugin.js",
"./types/component": {
"types": "./types/component.d.ts"
}
}, },
"dependencies": { "dependencies": {
"playwright-core": "1.38.0-next", "playwright-core": "1.38.0-next",