@jestaubach/cloner-git
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -7,5 +7,5 @@ import { ExecResult, Path } from './types'; | ||
default: typeof git; | ||
mock: (fsHelpers: import("./types").FsHelpers) => import("jest-mock").Mock<unknown, unknown[]>; | ||
mockError: () => import("jest-mock").Mock<unknown, unknown[]>; | ||
mock: (fsHelpers: import("./types").FsHelpers) => (args: string[], cwd?: string) => Promise<ExecResult>; | ||
mockError: () => (_args: string[], _cwd?: string) => Promise<ExecResult>; | ||
}; | ||
export default _default; |
@@ -1,4 +0,4 @@ | ||
import { FsHelpers } from './types'; | ||
declare function mock(fsHelpers: FsHelpers): import("jest-mock").Mock<unknown, unknown[]>; | ||
declare function mockError(): import("jest-mock").Mock<unknown, unknown[]>; | ||
import { ExecResult, Path, FsHelpers } from './types'; | ||
declare function mock(fsHelpers: FsHelpers): (args: string[], cwd?: Path) => Promise<ExecResult>; | ||
declare function mockError(): (_args: string[], _cwd?: Path) => Promise<ExecResult>; | ||
declare const _default: { | ||
@@ -5,0 +5,0 @@ mock: typeof mock; |
@@ -12,5 +12,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const globals_1 = require("@jest/globals"); | ||
function mock(fsHelpers) { | ||
return globals_1.jest.fn().mockImplementation((args, cwd) => __awaiter(this, void 0, void 0, function* () { | ||
return ((args, cwd) => __awaiter(this, void 0, void 0, function* () { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
@@ -38,3 +37,3 @@ const pathLocal = require(`path`); | ||
function mockError() { | ||
return globals_1.jest.fn().mockImplementation((_args, _cwd) => __awaiter(this, void 0, void 0, function* () { | ||
return ((_args, _cwd) => __awaiter(this, void 0, void 0, function* () { | ||
return Promise.resolve({ | ||
@@ -41,0 +40,0 @@ error: { name: ``, message: `oops!`, code: -1 }, |
{ | ||
"name": "@jestaubach/cloner-git", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "typescript library template", | ||
@@ -43,3 +43,6 @@ "keywords": [], | ||
"typescript": "^4.5.5" | ||
}, | ||
"dependencies": { | ||
"@jestaubach/fs-helpers": "^0.2.8" | ||
} | ||
} |
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
10358
1
130
+ Added@esbuild/aix-ppc64@0.21.5(transitive)
+ Added@esbuild/android-arm@0.21.5(transitive)
+ Added@esbuild/android-arm64@0.21.5(transitive)
+ Added@esbuild/android-x64@0.21.5(transitive)
+ Added@esbuild/darwin-arm64@0.21.5(transitive)
+ Added@esbuild/darwin-x64@0.21.5(transitive)
+ Added@esbuild/freebsd-arm64@0.21.5(transitive)
+ Added@esbuild/freebsd-x64@0.21.5(transitive)
+ Added@esbuild/linux-arm@0.21.5(transitive)
+ Added@esbuild/linux-arm64@0.21.5(transitive)
+ Added@esbuild/linux-ia32@0.21.5(transitive)
+ Added@esbuild/linux-loong64@0.21.5(transitive)
+ Added@esbuild/linux-mips64el@0.21.5(transitive)
+ Added@esbuild/linux-ppc64@0.21.5(transitive)
+ Added@esbuild/linux-riscv64@0.21.5(transitive)
+ Added@esbuild/linux-s390x@0.21.5(transitive)
+ Added@esbuild/linux-x64@0.21.5(transitive)
+ Added@esbuild/netbsd-x64@0.21.5(transitive)
+ Added@esbuild/openbsd-x64@0.21.5(transitive)
+ Added@esbuild/sunos-x64@0.21.5(transitive)
+ Added@esbuild/win32-arm64@0.21.5(transitive)
+ Added@esbuild/win32-ia32@0.21.5(transitive)
+ Added@esbuild/win32-x64@0.21.5(transitive)
+ Added@jestaubach/fs-helpers@0.2.25(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@rollup/rollup-android-arm-eabi@4.27.4(transitive)
+ Added@rollup/rollup-android-arm64@4.27.4(transitive)
+ Added@rollup/rollup-darwin-arm64@4.27.4(transitive)
+ Added@rollup/rollup-darwin-x64@4.27.4(transitive)
+ Added@rollup/rollup-freebsd-arm64@4.27.4(transitive)
+ Added@rollup/rollup-freebsd-x64@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm-gnueabihf@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm-musleabihf@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm64-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm64-musl@4.27.4(transitive)
+ Added@rollup/rollup-linux-powerpc64le-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-riscv64-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-s390x-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-x64-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-x64-musl@4.27.4(transitive)
+ Added@rollup/rollup-win32-arm64-msvc@4.27.4(transitive)
+ Added@rollup/rollup-win32-ia32-msvc@4.27.4(transitive)
+ Added@rollup/rollup-win32-x64-msvc@4.27.4(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedbuiltin-modules@3.3.0(transitive)
+ Addedes-module-lexer@1.5.4(transitive)
+ Addedesbuild@0.21.5(transitive)
+ Addedfs-extra@11.2.0(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmagic-string@0.30.14(transitive)
+ Addedmkdirp@3.0.1(transitive)
+ Addednanoid@3.3.8(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.49(transitive)
+ Addedrollup@4.27.4(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addeduniversalify@2.0.1(transitive)
+ Addedvite@5.4.11(transitive)
+ Addedvite-plugin-commonjs-externals@0.1.4(transitive)