Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpogran committed Dec 8, 2021
1 parent 006fc4c commit 2cf621b
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/__mocks__/reporter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
// @ts-nocheck ignore type checking in test files
export const reporter = {
sendTelemetryEvent: jest.fn(),
sendRawTelemetryEvent: jest.fn(),
Expand Down
2 changes: 1 addition & 1 deletion src/__mocks__/serverPath.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
// @ts-nocheck ignore type checking in test files
export const lsPath = {
installPath: jest.fn(),
stgInstallPath: jest.fn(),
Expand Down
2 changes: 1 addition & 1 deletion src/__mocks__/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
// @ts-nocheck ignore type checking in test files
export const exec = jest.fn();
6 changes: 4 additions & 2 deletions src/__mocks__/vscode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
// @ts-nocheck ignore type checking in test files
export const languages = {
createDiagnosticCollection: jest.fn(),
};
Expand Down
2 changes: 1 addition & 1 deletion src/installer/__mocks__/detector.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
// @ts-nocheck ignore type checking in test files
export const pathExists = jest.fn(() => {
return false;
});
Expand Down
2 changes: 1 addition & 1 deletion src/installer/__mocks__/installer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
// @ts-nocheck ignore type checking in test files
export const installTerraformLS = jest.fn();
2 changes: 1 addition & 1 deletion src/installer/__mocks__/js-releases.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
// @ts-nocheck ignore type checking in test files
export const getRelease = jest.fn();
2 changes: 1 addition & 1 deletion src/test/unit/detector.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
// @ts-nocheck ignore type checking in test files
import { getLsVersion, isValidVersionString, getRequiredVersionRelease } from '../../installer/detector';
import { exec } from '../../utils';
import { getRelease } from '@hashicorp/js-releases';
Expand Down
2 changes: 1 addition & 1 deletion src/test/unit/installer.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
// @ts-nocheck ignore type checking in test files
import { installTerraformLS } from '../../installer/installer';
import { reporter } from '../../__mocks__/reporter';
import { pathExists } from '../../installer/detector';
Expand Down
2 changes: 1 addition & 1 deletion src/test/unit/updater.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck ignore typ checking in test files
// @ts-nocheck ignore type checking in test files
import { updateOrInstall } from '../../installer/updater';
import { workspace } from '../../__mocks__/vscode';
import { lsPath } from '../../__mocks__/serverPath';
Expand Down

0 comments on commit 2cf621b

Please sign in to comment.