Skip to content

Commit 5495727

Browse files
committed
fix: tests
1 parent b3419d8 commit 5495727

22 files changed

+22146
-8377
lines changed

lib/commands/plugin/build-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
import { ICommand, ICommandParameter } from "../../common/definitions/commands";
1010
import { IErrors, IFileSystem } from "../../common/declarations";
1111
import { injector } from "../../common/yok";
12+
import { ITempService } from "../../definitions/temp-service";
1213

1314
export class BuildPluginCommand implements ICommand {
1415
public allowedParameters: ICommandParameter[] = [];

lib/common/definitions/temp.d.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

lib/common/mobile/android/android-device-file-system.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { executeActionByChunks } from "../../helpers";
66
import { DEFAULT_CHUNK_SIZE } from "../../constants";
77
import { IFileSystem, IStringDictionary } from "../../declarations";
88
import { IInjector } from "../../definitions/yok";
9+
import { ITempService } from "../../../definitions/temp-service";
910

1011
export class AndroidDeviceFileSystem implements Mobile.IDeviceFileSystem {
1112
private _deviceHashServices = Object.create(null);

lib/common/mobile/android/android-device-hash-service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { cache } from "../../decorators";
44
import { executeActionByChunks } from "../../helpers";
55
import { DEFAULT_CHUNK_SIZE, LiveSyncPaths } from "../../constants";
66
import { IFileSystem, IStringDictionary } from "../../declarations";
7+
import { ITempService } from "../../../definitions/temp-service";
78

89
export class AndroidDeviceHashService
910
implements Mobile.IAndroidDeviceHashService {

lib/common/mobile/ios/simulator/ios-simulator-application-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
IFileSystem,
1414
IHooksService,
1515
} from "../../../declarations";
16+
import { ITempService } from "../../../../definitions/temp-service";
1617

1718
export class IOSSimulatorApplicationManager extends ApplicationManagerBase {
1819
private _lldbProcesses: IDictionary<ChildProcess> = {};

lib/common/mobile/mobile-helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as _ from "lodash";
44
import { IProjectData } from "../../definitions/project";
55
import { IErrors, IFileSystem } from "../declarations";
66
import { injector } from "../yok";
7+
import { ITempService } from "../../definitions/temp-service";
78

89
export class MobileHelper implements Mobile.IMobileHelper {
910
private static DEVICE_PATH_SEPARATOR = "/";

lib/definitions/temp-service.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import { AffixOptions } from "temp";
2+
13
/**
24
* Declares wrapped functions of temp module
35
*/
46
interface ITempService {
5-
mkdirSync(affixes: string): Promise<string>;
6-
path(options: ITempPathOptions): Promise<string>;
7+
mkdirSync(affixes: string | AffixOptions): Promise<string>;
8+
path(options: string | AffixOptions): Promise<string>;
79
}

lib/device-sockets/ios/app-debug-socket-proxy-factory.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { MessageUnpackStream } from "ios-device-lib";
66
import { IAppDebugSocketProxyFactory, IOptions } from "../../declarations";
77
import { IDictionary, IErrors, INet } from "../../common/declarations";
88
import { injector } from "../../common/yok";
9+
import { ITempService } from "../../definitions/temp-service";
910

1011
export class AppDebugSocketProxyFactory
1112
extends EventEmitter

lib/helpers/platform-command-helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
import { IPlatformsDataService, IPlatformData } from "../definitions/platform";
1414
import { IFileSystem, IErrors } from "../common/declarations";
1515
import { injector } from "../common/yok";
16+
import { ITempService } from "../definitions/temp-service";
1617

1718
export class PlatformCommandHelper implements IPlatformCommandHelper {
1819
constructor(

lib/services/ios-project-service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import { IInjector } from "../common/definitions/yok";
4545
import { injector } from "../common/yok";
4646
import { INotConfiguredEnvOptions } from "../common/definitions/commands";
4747
import { IProjectChangesInfo } from "../definitions/project-changes";
48+
import { ITempService } from "../definitions/temp-service";
4849

4950
interface INativeSourceCodeGroup {
5051
name: string;

0 commit comments

Comments
 (0)