Remove as unknown as WorkspaceFolder
This commit is contained in:
@@ -7,6 +7,7 @@ import { DirectoryResult } from "tmp-promise";
|
|||||||
import * as tmp from "tmp-promise";
|
import * as tmp from "tmp-promise";
|
||||||
|
|
||||||
import "../../matchers/toEqualPath";
|
import "../../matchers/toEqualPath";
|
||||||
|
import { mockedObject } from "../utils/mocking.helpers";
|
||||||
|
|
||||||
describe("qltest-discovery", () => {
|
describe("qltest-discovery", () => {
|
||||||
describe("discoverTests", () => {
|
describe("discoverTests", () => {
|
||||||
@@ -34,10 +35,10 @@ describe("qltest-discovery", () => {
|
|||||||
iFile = join(hDir, "i.ql");
|
iFile = join(hDir, "i.ql");
|
||||||
|
|
||||||
qlTestDiscover = new QLTestDiscovery(
|
qlTestDiscover = new QLTestDiscovery(
|
||||||
{
|
mockedObject<WorkspaceFolder>({
|
||||||
uri: baseUri,
|
uri: baseUri,
|
||||||
name: "My tests",
|
name: "My tests",
|
||||||
} as unknown as WorkspaceFolder,
|
}),
|
||||||
{
|
{
|
||||||
resolveTests() {
|
resolveTests() {
|
||||||
return [dFile, eFile, iFile];
|
return [dFile, eFile, iFile];
|
||||||
|
|||||||
Reference in New Issue
Block a user