-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathvscode.ts
More file actions
32 lines (28 loc) · 823 Bytes
/
vscode.ts
File metadata and controls
32 lines (28 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Copyright (c) 2025 Certinia Inc. All rights reserved.
*/
/* eslint-disable @typescript-eslint/naming-convention */
export const RelativePattern = jest.fn();
export const Uri = {
file: jest.fn((path: string) => ({ fsPath: path })),
joinPath: jest.fn((base: { fsPath: string }, ...paths: string[]) => ({
fsPath: [base.fsPath, ...paths].join('/'),
})),
};
export const workspace = {
findFiles: jest.fn(),
openTextDocument: jest.fn(),
workspaceFolders: [],
asRelativePath: jest.fn((uri: { fsPath: string } | string) =>
typeof uri === 'string' ? uri : uri.fsPath,
),
};
export const window = {
showInformationMessage: jest.fn(),
showErrorMessage: jest.fn(),
showWarningMessage: jest.fn(),
createOutputChannel: jest.fn(() => ({
appendLine: jest.fn(),
show: jest.fn(),
})),
};