All files / src/__mocks__ vscode.ts

87.5% Statements 35/40
100% Branches 0/0
0% Functions 0/1
87.5% Lines 35/40

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 33 34 35 36 37 38 39 40 411x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x           1x 1x 1x 1x 1x 1x 1x 1x  
import { vi } from 'vitest';
 
export const workspace = {
  workspaceFolders: [
    {
      uri: {
        fsPath: '/mock/workspace',
      },
    },
  ],
};
 
export const window = {
  showErrorMessage: vi.fn(),
  showInformationMessage: vi.fn(),
};
 
export const commands = {
  executeCommand: vi.fn(),
};
 
export const StatusBarAlignment = {
  Left: 0,
  Right: 1,
};
 
export function createStatusBarItem() {
  return {
    command: '',
    dispose: vi.fn(),
  };
}
 
export default {
  workspace,
  window,
  commands,
  StatusBarAlignment,
  createStatusBarItem,
};