backfill-utils-test
Advanced tools
Comparing version 3.0.0 to 3.0.1-a.0
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const findUp = require("find-up"); | ||
const fs = require("fs-extra"); | ||
const path = require("path"); | ||
const tempy = require("tempy"); | ||
const path_1 = __importDefault(require("path")); | ||
const find_up_1 = __importDefault(require("find-up")); | ||
const fs_extra_1 = __importDefault(require("fs-extra")); | ||
const tempy_1 = __importDefault(require("tempy")); | ||
async function findFixturePath(cwd, fixtureName) { | ||
return await findUp(path.join("__fixtures__", fixtureName), { | ||
return await find_up_1.default(path_1.default.join("__fixtures__", fixtureName), { | ||
cwd, | ||
@@ -16,12 +19,12 @@ type: "directory" | ||
if (!fixturePath) { | ||
throw new Error(`Couldn't find fixture "${fixtureName}" in "${path.join(__dirname, "__fixtures__")}"`); | ||
throw new Error(`Couldn't find fixture "${fixtureName}" in "${path_1.default.join(__dirname, "__fixtures__")}"`); | ||
} | ||
const tempDir = tempy.directory(); | ||
const cwd = path.join(tempDir, fixtureName); | ||
fs.mkdirpSync(cwd); | ||
const tempDir = tempy_1.default.directory(); | ||
const cwd = path_1.default.join(tempDir, fixtureName); | ||
fs_extra_1.default.mkdirpSync(cwd); | ||
process.chdir(cwd); | ||
fs.copySync(fixturePath, cwd); | ||
fs_extra_1.default.copySync(fixturePath, cwd); | ||
return cwd; | ||
} | ||
exports.setupFixture = setupFixture; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dXBGaXh0dXJlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3NldHVwRml4dHVyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtDQUFrQztBQUNsQywrQkFBK0I7QUFDL0IsNkJBQTZCO0FBQzdCLCtCQUErQjtBQUUv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}; | ||
//# sourceMappingURL=setupTests.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const backfill_generic_logger_1 = require("backfill-generic-logger"); | ||
// Set timeout to 30 seconds | ||
jest.setTimeout(30 * 1000); | ||
backfill_generic_logger_1.setLogLevel("error"); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dXBUZXN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zZXR1cFRlc3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEscUVBQXNEO0FBRXRELDRCQUE0QjtBQUM1QixJQUFJLENBQUMsVUFBVSxDQUFDLEVBQUUsR0FBRyxJQUFJLENBQUMsQ0FBQztBQUUzQixxQ0FBVyxDQUFDLE9BQU8sQ0FBQyxDQUFDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dXBUZXN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zZXR1cFRlc3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSw0QkFBNEI7QUFDNUIsSUFBSSxDQUFDLFVBQVUsQ0FBQyxFQUFFLEdBQUcsSUFBSSxDQUFDLENBQUMifQ== |
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "3.0.0", | ||
"version": "3.0.1-a.0", | ||
"main": "lib/index.js", | ||
@@ -19,3 +19,2 @@ "scripts": { | ||
"dependencies": { | ||
"backfill-generic-logger": "^3.0.0", | ||
"find-up": "^4.0.0", | ||
@@ -27,6 +26,6 @@ "fs-extra": "^8.1.0", | ||
"@types/fs-extra": "^8.0.0", | ||
"backfill-utils-tsconfig": "^2.0.3", | ||
"backfill-utils-tsconfig": "^3.0.1-a.0", | ||
"typescript": "3.7.4" | ||
}, | ||
"gitHead": "7542473ba460ad74c0f6373e5e187528b219023c" | ||
"gitHead": "9c751392fa4ecab1639347b255bd82533feb55ef" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
3
6840
11
62
2
1
- Removedbackfill-generic-logger@^3.0.0
- Removedansi-styles@4.3.0(transitive)
- Removedbackfill-generic-logger@3.0.0(transitive)
- Removedchalk@3.0.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)