@jestaubach/cloner-git
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -1,2 +0,1 @@ | ||
/// <reference types="jest" /> | ||
import { ExecResult, Path } from './types'; | ||
@@ -8,5 +7,5 @@ declare function git(args: string[], cwd?: Path): Promise<ExecResult>; | ||
default: typeof git; | ||
mock: (fsHelpers: import("./types").FsHelpers) => jest.Mock<any, any>; | ||
mockError: () => jest.Mock<any, any>; | ||
mock: (fsHelpers: import("./types").FsHelpers) => import("jest-mock").Mock<unknown, unknown[]>; | ||
mockError: () => import("jest-mock").Mock<unknown, unknown[]>; | ||
}; | ||
export default _default; |
@@ -1,5 +0,4 @@ | ||
/// <reference types="jest" /> | ||
import { FsHelpers } from './types'; | ||
declare function mock(fsHelpers: FsHelpers): jest.Mock<any, any>; | ||
declare function mockError(): jest.Mock<any, any>; | ||
declare function mock(fsHelpers: FsHelpers): import("jest-mock").Mock<unknown, unknown[]>; | ||
declare function mockError(): import("jest-mock").Mock<unknown, unknown[]>; | ||
declare const _default: { | ||
@@ -6,0 +5,0 @@ mock: typeof mock; |
@@ -12,4 +12,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const globals_1 = require("@jest/globals"); | ||
function mock(fsHelpers) { | ||
return jest.fn().mockImplementation((args, cwd) => __awaiter(this, void 0, void 0, function* () { | ||
return globals_1.jest.fn().mockImplementation((args, cwd) => __awaiter(this, void 0, void 0, function* () { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
@@ -37,3 +38,3 @@ const pathLocal = require(`path`); | ||
function mockError() { | ||
return jest.fn().mockImplementation((_args, _cwd) => __awaiter(this, void 0, void 0, function* () { | ||
return globals_1.jest.fn().mockImplementation((_args, _cwd) => __awaiter(this, void 0, void 0, function* () { | ||
return Promise.resolve({ | ||
@@ -40,0 +41,0 @@ error: { name: ``, message: `oops!`, code: -1 }, |
{ | ||
"name": "@jestaubach/cloner-git", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "typescript library template", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10438
131