mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix: component testing types with moduleresolution: bundler (#26551)
Fixes https://github.com/microsoft/playwright/issues/24581
This commit is contained in:
parent
c344fce7b6
commit
22dacdb75f
2
packages/playwright-ct-core/index.d.ts
vendored
2
packages/playwright-ct-core/index.d.ts
vendored
@ -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'> & {
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user