@samepage/testing
Version:
Utilities that help with testing SamePage-compatible extensions
11 lines • 541 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const fs_1 = tslib_1.__importDefault(require("fs"));
const globalTeardown = async () => {
if (fs_1.default.existsSync(`${process.cwd()}/tests/config.ts`)) {
await Promise.resolve(`${`${process.cwd()}/tests/config.ts`}`).then(s => tslib_1.__importStar(require(s))).then((mod) => typeof mod.teardown === "function" && mod.teardown());
}
};
exports.default = globalTeardown;
//# sourceMappingURL=globalTeardown.js.map