Skip to content

Commit 476fa30

Browse files
committed
Fixes lint issues
1 parent 2c790db commit 476fa30

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

tests/e2e/baseTest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* eslint-disable no-empty-pattern */
2-
import fs from 'fs';
3-
import os from 'os';
4-
import path from 'path';
2+
import fs from 'node:fs';
3+
import os from 'node:os';
4+
import path from 'node:path';
5+
import * as process from 'node:process';
56
import type { ElectronApplication, Page } from '@playwright/test';
67
import { _electron, test as base } from '@playwright/test';
78
import { downloadAndUnzipVSCode } from '@vscode/test-electron/out/download';
@@ -88,7 +89,6 @@ interface WorkerFixtures {
8889

8990
export const test = base.extend<BaseFixtures, WorkerFixtures>({
9091
// Default options (can be overridden per-file)
91-
// eslint-disable-next-line no-restricted-globals
9292
vscodeOptions: [{ vscodeVersion: process.env.VSCODE_VERSION ?? 'stable' }, { scope: 'worker', option: true }],
9393

9494
// vscode launches VS Code with GitLens extension (shared per worker)

tests/e2e/runner/src/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
* It exposes an HTTP server that allows Playwright tests to execute
66
* code with access to the VS Code API.
77
*/
8-
import type { IncomingMessage, ServerResponse } from 'http';
9-
import { createServer } from 'http';
10-
import type { AddressInfo } from 'net';
8+
import type { IncomingMessage, ServerResponse } from 'node:http';
9+
import { createServer } from 'node:http';
10+
import type { AddressInfo } from 'node:net';
11+
import * as process from 'node:process';
1112
import * as vscode from 'vscode';
1213

1314
interface InvokeRequest {
@@ -74,7 +75,7 @@ async function handleRequest(req: IncomingMessage, res: ServerResponse): Promise
7475

7576
export async function run(): Promise<void> {
7677
const server = createServer((req, res) => {
77-
handleRequest(req, res).catch(err => {
78+
handleRequest(req, res).catch((err: unknown) => {
7879
res.writeHead(500);
7980
res.end(String(err));
8081
});
@@ -84,7 +85,7 @@ export async function run(): Promise<void> {
8485
const address = server.address() as AddressInfo;
8586

8687
// This message is parsed by the Playwright test to get the server URL
87-
// eslint-disable-next-line no-restricted-globals
88+
8889
process.stderr.write(`VSCodeTestServer listening on http://localhost:${address.port}\n`);
8990

9091
// Keep running until process exits (VS Code closes)

0 commit comments

Comments
 (0)