test: fix package installation tests (#8430)

This commit is contained in:
Max Schmitt 2021-08-25 13:34:54 +02:00 committed by GitHub
parent 29eb6cb777
commit 8189de42cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ export class RecorderApp extends EventEmitter {
}
static async open(inspectedContext: BrowserContext): Promise<RecorderApp> {
const recorderPlaywright = require('../../playwright').createPlaywright(true) as import('../../playwright').Playwright;
const recorderPlaywright = (require('../../playwright').createPlaywright as typeof import('../../playwright').createPlaywright)('javascript', true) as import('../../playwright').Playwright;
const args = [
'--app=data:text/html,',
'--window-size=600,600',

View file

@ -59,7 +59,7 @@ class DriverMode {
}
class ServiceMode {
private _client: any;
private _client: import('../../src/remote/playwrightClient').PlaywrightClient;
private _serviceProcess: childProcess.ChildProcess;
async setup(workerIndex: number) {